ReporterException
extends Exception
in package
Table of Contents
- $data : array<string|int, mixed>
- $errorKey : string
- The codified error key, if exists
- $httpResponseCode : int
- The HTTP Response Code to return
- __construct() : mixed
- getData() : array<string|int, mixed>
- getErrorKey() : string
- getHttpResponseCode() : int
- render() : Response
- Render the exception into an HTTP response.
- report() : bool|null
- Report the exception.
Properties
$data
private
array<string|int, mixed>
$data
optional data
$errorKey
The codified error key, if exists
private
string
$errorKey
$httpResponseCode
The HTTP Response Code to return
private
int
$httpResponseCode
Methods
__construct()
public
__construct([string $message = "" ], int $code[, Throwable|null $previous = null ][, string $errorKey = '' ][, int $httpResponseCode = 500 ][, array<string|int, mixed> $data = [] ]) : mixed
Parameters
- $message : string = ""
- $code : int
- $previous : Throwable|null = null
- $errorKey : string = ''
- $httpResponseCode : int = 500
- $data : array<string|int, mixed> = []
Return values
mixed —getData()
public
getData() : array<string|int, mixed>
Return values
array<string|int, mixed> —getErrorKey()
public
getErrorKey() : string
Return values
string —getHttpResponseCode()
public
getHttpResponseCode() : int
Return values
int —render()
Render the exception into an HTTP response.
public
render(Request $request) : Response
Parameters
- $request : Request
Return values
Response —report()
Report the exception.
public
report() : bool|null