Methods
Constructor
__construct(string $message, int $code, mixed $data)
Parameters
$message
string
$code
int
$data
mixed
Cast to string (JSON)
__toString() : string
Get error code
getCode() : int | null
Get error data
getData() : mixed
Get error message
getMessage() : string
Cast error to array
toArray() : array
Cast error to JSON
toJson() : string
Properties
Allowed error codes
$allowedCodes : array
Error message
$message : string
Constants
ERROR_INTERNAL
ERROR_INTERNAL
ERROR_INVALID_METHOD
ERROR_INVALID_METHOD
ERROR_INVALID_PARAMS
ERROR_INVALID_PARAMS
ERROR_INVALID_REQUEST
ERROR_INVALID_REQUEST