Exception
class Exception extends RuntimeException implements Serializable
An Exception is thrown when an errors occurs while communicating with the API.
Methods
__construct(RequestException $previous, string $message = '')
Exception constructor.
serialize()
No description
unserialize($serialized)
No description
RequestInterface
getRequest()
Get the request that caused the exception.
ResponseInterface|null
getResponse()
Get the associated response.
bool
hasResponse()
Check if a response was received.
string|null
getRequestId()
No description
Details
at line 47
__construct(RequestException $previous, string $message = '')
Exception constructor.
at line 64
serialize()
at line 77
unserialize($serialized)
at line 113
RequestInterface
getRequest()
Get the request that caused the exception.
at line 123
ResponseInterface|null
getResponse()
Get the associated response.
at line 133
bool
hasResponse()
Check if a response was received.