Documentation

Error
in package
implements ErrorInterface

Represents an error returned by Redis (-ERR responses) during the execution of a command on the server.

Tags
author

Daniele Alessandri suppakilla@gmail.com

Interfaces, Classes and Traits

ErrorInterface
Represents an error returned by Redis (responses identified by "-" in the Redis protocol) during the execution of an operation on the server.

Table of Contents

$message  : mixed
__construct()  : mixed
__toString()  : string
Converts the object to its string representation.
getErrorType()  : string
Returns the error type (e.g. ERR, ASK, MOVED).
getMessage()  : string
Returns the error message.

Properties

$message

private mixed $message

Methods

__construct()

public __construct(string $message) : mixed
Parameters
$message : string

Error message returned by Redis

Return values
mixed

__toString()

Converts the object to its string representation.

public __toString() : string
Return values
string

getErrorType()

Returns the error type (e.g. ERR, ASK, MOVED).

public getErrorType() : string
Return values
string

getMessage()

Returns the error message.

public getMessage() : string
Return values
string

Search results