Exception for HTTP requests

package Requests

 Methods

Create a new exception

__construct(string $message, string $type, mixed $data = null, integer $code = 0

Parameters

$message

string

Exception message

$type

string

Exception type

$data

mixed

Associated data

$code

integer

Exception numerical code, if applicable

Gives any relevant data

getData() : mixed
codeCoverageIgnore

Returns

mixed

Like {@see getCode()}, but a string code.

getType() : string
codeCoverageIgnore

Returns

string

 Properties

 

Data associated with the exception

$data : mixed

Default

 

Type of exception

$type : string

Default