API_Exception
class API_Exception extends Exception
This api exception returns more information than the default one. The aim it let the api consumer know better what is exactly the error without having to parse the error message.
If you consume an api that doesn't return an error_code or the extra data you need, consider improving the api and contribute.
Constants
UNAUTHORIZED |
|
NOT_IMPLEMENTED |
|
Methods
__construct(string $message, mixed $error_code = 0, array $extraParams = [], Exception $previous = NULL)
Class constructor.
string
__toString()
Custom string representation of object.
array
getExtraParams()
Get extra parameters.
array
getErrorCodes()
Get error codes.
Details
at line 40
__construct(string $message, mixed $error_code = 0, array $extraParams = [], Exception $previous = NULL)
Class constructor.
at line 57
string
__toString()
Custom string representation of object.
at line 66
array
getExtraParams()
Get extra parameters.
at line 75
array
getErrorCodes()
Get error codes.