PHP WebSocket2 Library
PHP5 Library for browsing web
WebRequestException Class Reference

Class that represents Web library exceptions. More...

Inheritance diagram for WebRequestException:

Public Member Functions

 __construct ($message, $code=0, Exception $previous=null)
 Constructor. More...
 

Data Fields

const UNABLE_TO_LOCATE_SUBSTRING = 1
 Unable to locate substring in response. More...
 
const UNABLE_TO_PARSE_RESULT = 2
 Unable to parse received response.
 
const PROXY_AUTHENTICATION_ERROR = 3
 Proxy authentication was unsuccessful for some reason.
 
const PROXY_AUTHENTICATION_REQUIRED = 4
 Proxy authentication is required. You should supply correct login and password.
 
const UNABLE_TO_RESOLVE_HOSTNAME = 5
 Error when resolving hostname to IP address.
 
const INCORRECT_CHUNKED_CONTENT = 6
 Incorrect chunked content in response.
 
const INCORRECT_GZIPPED_CONTENT = 7
 Incorrect gzipped content in response.
 
const UNKNOWN_COMPRESSION_METHOD = 8
 Unknown compression method in response.
 
const UNABLE_TO_CONNECT = 9
 Unable to connect to target host.
 
const UNABLE_TO_READ = 10
 Unable to read data from socket.
 
const UNABLE_TO_WRITE = 11
 Unable to write data to socket.
 
const SOCKET_ERROR = 12
 Undefined socket error.
 
const SOCKET_TIMEOUT = 13
 Timeout when connecting to socket or reading or writing data.
 
const UNABLE_TO_SEND_DATA = 14
 Incorrect HTTP method to send attachments.
 
const UNABLE_TO_READ_FILE = 15
 Unable to read specified file.
 
const UNABLE_TO_PARSE_URL = 16
 Unable to parse specified URL.
 
const INCORRECT_AUTHENTICATION_OPTIONS = 17
 Incorrect HTTP digest authentication options.
 
const OPENSSL_IS_ABSENT = 18
 OpenSSL extension must be installed to access HTTPS resources.
 

Detailed Description

Class that represents Web library exceptions.

Examples:
timeouts.php.

Constructor & Destructor Documentation

__construct (   $message,
  $code = 0,
Exception  $previous = null 
)

Constructor.

Parameters
string$messageException message
int$codeException code
Exception$previousPrevious exception

Field Documentation

const UNABLE_TO_LOCATE_SUBSTRING = 1

Unable to locate substring in response.

Usually this means that response is malformed.


The documentation for this class was generated from the following file: