\RESTException

Class for rest exceptions.

Summary

Methods
Properties
Constants
__construct()
getHttpCode()
getHttpBody()
getUrl()
getOptions()
$HTTPCode
$HTTPBody
$URL
$Options
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$HTTPCode

$HTTPCode : integer

HTTP response code.

Type

integer

$HTTPBody

$HTTPBody : string

HTTP response body.

Type

string

$URL

$URL : string

HTTP response URL.

Type

string

$Options

$Options : string

HTTP request options.

Type

string

Methods

__construct()

__construct(string  $Message, integer  $Code, integer  $HTTPCode, string  $HTTPBody, string  $URL = '', array  $Options = false) 

Constructor.

Parameters

string $Message
  • Error description.
integer $Code
  • Code of the error.
integer $HTTPCode
  • Response HTTP code.
string $HTTPBody
  • Body of the response.
string $URL
  • Request URL.
array $Options
  • Request options.

getHttpCode()

getHttpCode() : \number

Method returns HTTP code.

Returns

\number —

HTTP code.

getHttpBody()

getHttpBody() : string

Method returns HTTP body.

Returns

string —

HTTP body.

getUrl()

getUrl() : string

Method returns URL.

Returns

string —

URL.

getOptions()

getOptions() : string

Method returns request options.

Returns

string —

Request options.