HttpException¶
-
class
DreamCommerce\Exception\
HttpException
¶
An exception raised upon problem in communication layer (HTTP protocol error).
constants¶
LIMIT_TOO_LOW
- specified request limit is too low
METHOD_NOT_SUPPORTED
- tried to perform an unsupported HTTP method
QUOTA_EXCEEDED
- requests quota exceeded
REQUEST_FAILED
- a request failed (eg. I/O)
methods¶
-
DreamCommerce\Exception\HttpException::
__construct
([$message = ''[, $code = 0[, $previous = null[, $headers = array()[, $response = '']]]]])¶ Method instantiates exception.
Parameters: - $message (string) – exception message
- $code (integer) – error code
- $previous (Exception|null) – a handle to the previous exception
- $headers (array) – an array with response headers
-
DreamCommerce\Exception\HttpException::
getHeaders
()¶ Returns an array with headers returned upon exception raising.
Return type: array Returns: headers
-
DreamCommerce\Exception\HttpException::
getResponse
()¶ Returns a raw server response that caused an exception.
Return type: string Returns: response