Exception
extends Exception
in package
Exception for HTTP requests
Table of Contents
- $data : mixed
- Data associated with the exception
- $type : string
- Type of exception
- __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) : mixed
Parameters
- $message : string
-
Exception message
- $type : string
-
Exception type
- $data : mixed = null
-
Associated data
- $code : int
-
Exception numerical code, if applicable
Return values
mixed —getData()
Gives any relevant data
public
getData() : mixed
Return values
mixed —getType()
Like {@see \Exception::getCode()}, but a string code.
public
getType() : string