Warning! You are currently reading the documentation for Requests 1.x.
It is recommended to upgrade to Requests 2.x at your earliest convenience.
Upgrading to Requests 2.x is fairly straight-forward.
A full list of the changes can be found in the Changelog.
Visit the documentation for Requests_Exception
in Requests 2.x.
Class Requests_Exception
Exception for HTTP requests
- Exception
- Requests_Exception
Indirect known subclasses
Requests_Exception_HTTP_304, Requests_Exception_HTTP_305, Requests_Exception_HTTP_407, Requests_Exception_HTTP_408, Requests_Exception_HTTP_409, Requests_Exception_HTTP_410, Requests_Exception_HTTP_411, Requests_Exception_HTTP_412, Requests_Exception_HTTP_413, Requests_Exception_HTTP_414, Requests_Exception_HTTP_415, Requests_Exception_HTTP_416, Requests_Exception_HTTP_306, Requests_Exception_HTTP_417, Requests_Exception_HTTP_418, Requests_Exception_HTTP_428, Requests_Exception_HTTP_429, Requests_Exception_HTTP_431, Requests_Exception_HTTP_500, Requests_Exception_HTTP_501, Requests_Exception_HTTP_502, Requests_Exception_HTTP_503, Requests_Exception_HTTP_504, Requests_Exception_HTTP_400, Requests_Exception_HTTP_505, Requests_Exception_HTTP_511, Requests_Exception_HTTP_Unknown, Requests_Exception_Transport_cURL, Requests_Exception_HTTP_401, Requests_Exception_HTTP_402, Requests_Exception_HTTP_403, Requests_Exception_HTTP_404, Requests_Exception_HTTP_405, Requests_Exception_HTTP_406
public
|
#
__construct( string $message, string $type, mixed $data = null, integer $code = 0 )
Create a new exception |
public
string
|
|
public
mixed
|
__toString(),
__wakeup(),
getCode(),
getFile(),
getLine(),
getMessage(),
getPrevious(),
getTrace(),
getTraceAsString()
|
protected
string
|
$type
Type of exception |
|
protected
mixed
|
$data
Data associated with the exception |
$code,
$file,
$line,
$message
|