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'
Details ERROR_INVALID_REQUEST = '32600'
Details ERROR_INVALID_METHOD = '32601'
Details ERROR_INVALID_PARAMS = '32602'
Details ERROR_INTERNAL = '32603'
Details ERROR_OTHER = '32000'
Detailsarray $_allowedCodes = 'array'Allowed error codes
Detailsint $_code = '32000'Current code
Detailsmixed $_data = ''Error data
Detailsstring $_message = ''Error message
Details__construct(
string $message
=
null, int $code
=
32000, mixed $data
=
null
)
:
voidConstructor
Details__toString(
)
:
stringCast to string (JSON)
DetailsgetCode(
)
:
int|nullGet error code
DetailsgetData(
)
:
mixedGet error data
DetailsgetMessage(
)
:
stringGet error message
DetailssetCode(
int $code
)
:
Zend_Json_Server_ErrorSet error code
DetailssetData(
mixed $data
)
:
Zend_Json_Server_ErrorSet error data
DetailssetMessage(
string $message
)
:
Zend_Json_Server_ErrorSet error message
DetailstoArray(
)
:
arrayCast error to array
DetailstoJson(
)
:
stringCast error to JSON
Details