ErrorHandler
in package
implements
ErrorHandlerInterface
Simple CGI implementation.
Table of Contents
Interfaces
- ErrorHandlerInterface
- Describes ErrorHandler interface.
Properties
- $error : string
- $errorDescription : string
- $errorUri : string
- $status : int
- $throwable : ErrorThrowableDTO|null
Methods
- __construct() : mixed
- getApiResponse() : ResponseInterface
- Retrieve API Response.
- getHtmlResponse() : ResponseInterface
- Retrieve HTML Response.
- getData() : array<string, mixed>
Properties
$error
private
string
$error
= ''
$errorDescription
private
string
$errorDescription
= ''
$errorUri
private
string
$errorUri
= ''
$status
private
int
$status
= 0
$throwable
private
ErrorThrowableDTO|null
$throwable
= null
Methods
__construct()
public
__construct([array<string, mixed> $config = [] ]) : mixed
Parameters
- $config : array<string, mixed> = []
-
The configuration.
getApiResponse()
Retrieve API Response.
public
getApiResponse() : ResponseInterface
Return values
ResponseInterfacegetHtmlResponse()
Retrieve HTML Response.
public
getHtmlResponse() : ResponseInterface
Return values
ResponseInterfacegetData()
private
getData() : array<string, mixed>