__construct()
__toString()
getCode()
getData()
getMessage()
setCode()
setData()
setMessage()
toArray()
toJson()
$code
$data
$message
ERROR_INTERNAL
ERROR_INVALID_METHOD
ERROR_INVALID_PARAMS
ERROR_INVALID_REQUEST
ERROR_OTHER
ERROR_PARSE
__construct(string $message, int $code, mixed $data)
string
int
mixed
__toString() : string
string
getCode() : int | null
int
null
getData() : mixed
mixed
getMessage() : string
string
setCode(int $code) : \Zend\Json\Server\Error
If the error code is 0, it will be set to -32000 (ERROR_OTHER).
int
toArray() : array
array
toJson() : string
string
$code : int
$data : mixed
ERROR_INTERNAL
ERROR_INVALID_METHOD
ERROR_INVALID_PARAMS
ERROR_INVALID_REQUEST
ERROR_OTHER
ERROR_PARSE