Exception
extends Exception
in package
Exception for HTTP requests
Table of Contents
Properties
Methods
- __construct() : mixed
- Create a new exception
- getData() : mixed
- Gives any relevant data
- getType() : string
- Like {@see \Exception::getCode()}, but a string code.
Properties
$data
Data associated with the exception
protected
mixed
$data
$type
Type of exception
protected
string
$type
Methods
__construct()
Create a new exception
public
__construct(string $message, string $type[, mixed $data = null ][, int $code = 0 ]) : mixed
Parameters
- $message : string
-
Exception message
- $type : string
-
Exception type
- $data : mixed = null
-
Associated data
- $code : int = 0
-
Exception numerical code, if applicable
getData()
Gives any relevant data
public
getData() : mixed
getType()
Like {@see \Exception::getCode()}, but a string code.
public
getType() : string