RedisError
Less than 1 minute
RedisError
Exception representing an error reply returned by a Redis server.
class RedisError extends \Hazaar\Cache\Backend\Exception\ExceptionNormalizes Redis protocol error messages before raising them through the framework exception hierarchy.
Methods
__construct
Creates a Redis error exception from a raw server response string.
public __construct(string $message): voidIf the message starts with the Redis error prefix (-ERR ), the prefix is stripped so the resulting exception message is cleaner for callers.
Parameters
| Parameter | Type | Description |
|---|---|---|
$message | string | raw error message returned by Redis |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:25 +0000