Public Member Functions | |
__construct ($message=null, $code=null, $nativeCode=null) | |
getNativeCode () | |
Public Member Functions inherited from PEAR_Exception | |
__construct ($message, $p2=null, $p3=null) | |
getErrorData () | |
getCause () | |
getCauseMessage (&$causes) | |
getTraceSafe () | |
getErrorClass () | |
getErrorMethod () | |
__toString () | |
toHtml () | |
toText () | |
Public Attributes | |
const | INVALID_ARGUMENT = 1 |
const | MISSING_VALUE = 2 |
const | MISCONFIGURATION = 3 |
const | READ_ERROR = 4 |
const | MALFORMED_RESPONSE = 10 |
const | DECODE_ERROR = 20 |
const | TIMEOUT = 30 |
const | TOO_MANY_REDIRECTS = 40 |
const | NON_HTTP_REDIRECT = 50 |
Public Attributes inherited from PEAR_Exception | |
const | OBSERVER_PRINT = -2 |
const | OBSERVER_TRIGGER = -4 |
const | OBSERVER_DIE = -8 |
Additional Inherited Members | |
Static Public Member Functions inherited from PEAR_Exception | |
static | addObserver ($callback, $label= 'default') |
static | removeObserver ($label= 'default') |
static | getUniqueId () |
Protected Attributes inherited from PEAR_Exception | |
$cause | |
Definition at line 37 of file Exception.php.
HTTP_Request2_Exception::__construct | ( | $message = null , |
|
$code = null , |
|||
$nativeCode = null |
|||
) |
Constructor, can set package error code and native error code
string | $message | exception message |
int | $code | package error code, one of class constants |
int | $nativeCode | error code from underlying PHP extension |
Definition at line 72 of file Exception.php.
HTTP_Request2_Exception::getNativeCode | ( | ) |
Returns error code produced by underlying PHP extension
For Socket Adapter this may contain error number returned by stream_socket_client(), for Curl Adapter this will contain error number returned by curl_errno()
Definition at line 87 of file Exception.php.
const HTTP_Request2_Exception::DECODE_ERROR = 20 |
Failure decoding Content-Encoding or Transfer-Encoding of response
Definition at line 51 of file Exception.php.
const HTTP_Request2_Exception::INVALID_ARGUMENT = 1 |
An invalid argument was passed to a method
Definition at line 40 of file Exception.php.
const HTTP_Request2_Exception::MALFORMED_RESPONSE = 10 |
Server returned a response that does not conform to HTTP protocol
Definition at line 49 of file Exception.php.
const HTTP_Request2_Exception::MISCONFIGURATION = 3 |
Request cannot be processed due to errors in PHP configuration
Definition at line 44 of file Exception.php.
const HTTP_Request2_Exception::MISSING_VALUE = 2 |
Some required value was not available
Definition at line 42 of file Exception.php.
const HTTP_Request2_Exception::NON_HTTP_REDIRECT = 50 |
Redirect to a protocol other than http(s)://
Definition at line 57 of file Exception.php.
const HTTP_Request2_Exception::READ_ERROR = 4 |
Error reading the local file
Definition at line 46 of file Exception.php.
const HTTP_Request2_Exception::TIMEOUT = 30 |
Operation timed out
Definition at line 53 of file Exception.php.
const HTTP_Request2_Exception::TOO_MANY_REDIRECTS = 40 |
Number of redirects exceeded 'max_redirects' configuration parameter
Definition at line 55 of file Exception.php.