Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
ERROR_PARSE = '32768'
ERROR_INVALID_REQUEST = '32600'
ERROR_INVALID_METHOD = '32601'
ERROR_INVALID_PARAMS = '32602'
ERROR_INTERNAL = '32603'
ERROR_OTHER = '32000'
array $_allowedCodes = 'array'
Allowed error codes
int $_code = '32000'
Current code
mixed $_data = ''
Error data
string $_message = ''
Error message
__construct(
string $message
=
null, int $code
=
32000, mixed $data
=
null
)
:
void
Constructor
__toString(
)
:
string
Cast to string (JSON)
getCode(
)
:
int|null
Get error code
getData(
)
:
mixed
Get error data
getMessage(
)
:
string
Get error message
setCode(
int $code
)
:
Zend_Json_Server_Error
Set error code
setData(
mixed $data
)
:
Zend_Json_Server_Error
Set error data
setMessage(
string $message
)
:
Zend_Json_Server_Error
Set error message
toArray(
)
:
array
Cast error to array
toJson(
)
:
string
Cast error to JSON