Zend Framework
1.12
|
Public Member Functions | |
__construct ($message=null, $code=-32000, $data=null) | |
Constructor. | |
setCode ($code) | |
Set error code. | |
getCode () | |
Get error code. | |
setMessage ($message) | |
Set error message. | |
getMessage () | |
Get error message. | |
setData ($data) | |
Set error data. | |
getData () | |
Get error data. | |
toArray () | |
Cast error to array. | |
toJson () | |
Cast error to JSON. | |
__toString () | |
Cast to string (JSON) | |
Public Attributes | |
const | ERROR_PARSE = -32768 |
const | ERROR_INVALID_REQUEST = -32600 |
const | ERROR_INVALID_METHOD = -32601 |
const | ERROR_INVALID_PARAMS = -32602 |
const | ERROR_INTERNAL = -32603 |
const | ERROR_OTHER = -32000 |
Protected Attributes | |
$_allowedCodes | |
$_code = -32000 | |
$_data | |
$_message | |
__construct | ( | $message = null , |
|
$code = -32000 , |
|||
$data = null |
|||
) |
Constructor.
string | $message | |
int | $code | |
mixed | $data |
__toString | ( | ) |
Cast to string (JSON)
getCode | ( | ) |
Get error code.
getData | ( | ) |
Get error data.
getMessage | ( | ) |
Get error message.
setCode | ( | $code | ) |
setData | ( | $data | ) |
setMessage | ( | $message | ) |
toArray | ( | ) |
Cast error to array.
toJson | ( | ) |
Cast error to JSON.
|
protected |
|
protected |
|
protected |
|
protected |
const ERROR_INTERNAL = -32603 |
const ERROR_INVALID_METHOD = -32601 |
const ERROR_INVALID_PARAMS = -32602 |
const ERROR_INVALID_REQUEST = -32600 |
const ERROR_OTHER = -32000 |
const ERROR_PARSE = -32768 |