HTTP_Request2
[ class tree: HTTP_Request2 ] [ index: HTTP_Request2 ] [ all elements ]

Class: HTTP_Request2_Exception

Source Location: /HTTP_Request2-2.2.1/HTTP/Request2/Exception.php

Class Overview

PEAR_Exception
   |
   --HTTP_Request2_Exception

Base exception class for HTTP_Request2 package


Author(s):

Version:

  • Release: 2.2.1

Methods


Child classes:

HTTP_Request2_NotImplementedException
Exception thrown in case of missing features
HTTP_Request2_LogicException
Exception that represents error in the program logic
HTTP_Request2_ConnectionException
Exception thrown when connection to a web or proxy server fails
HTTP_Request2_MessageException
Exception thrown when sending or receiving HTTP message fails

Inherited Variables

Inherited Methods


Class Details

[line 37]
Base exception class for HTTP_Request2 package


[ Top ]


Method Detail

getNativeCode   [line 87]

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

  • Access: public

[ Top ]

__construct (Constructor)   [line 72]

HTTP_Request2_Exception __construct( [string $message = null], [int $code = null], [int $nativeCode = null])

Constructor, can set package error code and native error code
  • Access: public

Parameters:

string   $message     exception message
int   $code     package error code, one of class constants
int   $nativeCode     error code from underlying PHP extension

[ Top ]


Documentation generated on Thu, 16 Jan 2014 20:00:05 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.