TYPO3  7.6
Public Member Functions | Public Attributes | Private Attributes | List of all members
HTTP_Request2_Exception Class Reference
Inheritance diagram for HTTP_Request2_Exception:
PEAR_Exception HTTP_Request2_ConnectionException HTTP_Request2_LogicException HTTP_Request2_MessageException HTTP_Request2_NotImplementedException

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
 

Private Attributes

 $_nativeCode
 

Additional Inherited Members

- Static Public Member Functions inherited from PEAR_Exception
static addObserver ($callback, $label= 'default')
 
static removeObserver ($label= 'default')
 
static getUniqueId ()
 
- Protected Member Functions inherited from PEAR_Exception
 signal ()
 
- Protected Attributes inherited from PEAR_Exception
 $cause
 

Detailed Description

Definition at line 37 of file vendor/pear/http_request2/HTTP/Request2/Exception.php.

Constructor & Destructor Documentation

__construct (   $message = null,
  $code = null,
  $nativeCode = null 
)

Constructor, can set package error code and native error code

Parameters
string$messageexception message
int$codepackage error code, one of class constants
int$nativeCodeerror code from underlying PHP extension

Definition at line 72 of file vendor/pear/http_request2/HTTP/Request2/Exception.php.

Member Function Documentation

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()

Returns
integer

Definition at line 87 of file vendor/pear/http_request2/HTTP/Request2/Exception.php.

References $_nativeCode.

Member Data Documentation

$_nativeCode
private

Definition at line 63 of file vendor/pear/http_request2/HTTP/Request2/Exception.php.

Referenced by getNativeCode().

const DECODE_ERROR = 20

Failure decoding Content-Encoding or Transfer-Encoding of response

Definition at line 51 of file vendor/pear/http_request2/HTTP/Request2/Exception.php.

Referenced by HTTP_Request2_Response\decodeGzip(), and HTTP_Request2_Adapter_Socket\readChunked().

const INVALID_ARGUMENT = 1
const MALFORMED_RESPONSE = 10
const MISCONFIGURATION = 3
const MISSING_VALUE = 2
const NON_HTTP_REDIRECT = 50

Redirect to a protocol other than http(s)://

Definition at line 57 of file vendor/pear/http_request2/HTTP/Request2/Exception.php.

Referenced by HTTP_Request2_Adapter_Socket\handleRedirect().

const READ_ERROR = 4

Error reading the local file

Definition at line 46 of file vendor/pear/http_request2/HTTP/Request2/Exception.php.

Referenced by HTTP_Request2\fopenWrapper(), and HTTP_Request2_MultipartBody\read().

const TIMEOUT = 30
const TOO_MANY_REDIRECTS = 40

Number of redirects exceeded 'max_redirects' configuration parameter

Definition at line 55 of file vendor/pear/http_request2/HTTP/Request2/Exception.php.

Referenced by HTTP_Request2_Adapter_Socket\handleRedirect().