ApplicationError
in package
implements
ErrorHandlerInterface
Application error handler
Table of Contents
Interfaces
- ErrorHandlerInterface
- Error handler interface
Properties
- $page : HtmlPageInterface
- Page reference
Methods
- __construct() : mixed
- Constructor
- renderError() : string
- Render error
- renderJson() : string
- Render error
Properties
$page
Page reference
protected
HtmlPageInterface
$page
Methods
__construct()
Constructor
public
__construct(HtmlPageInterface $page) : mixed
Parameters
- $page : HtmlPageInterface
renderError()
Render error
public
renderError(Throwable $exception, string $renderType) : string
Parameters
- $exception : Throwable
-
The caught Throwable object
- $renderType : string
Return values
stringrenderJson()
Render error
public
renderJson(array<string|int, mixed> $errorDetails[, bool $short = true ]) : string
Parameters
- $errorDetails : array<string|int, mixed>
- $short : bool = true