Arikaim CMS

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

Methods

renderError()

Render error

public renderError(Throwable $exception, string $renderType) : string
Parameters
$exception : Throwable

The caught Throwable object

$renderType : string
Return values
string

renderJson()

Render error

public renderJson(array<string|int, mixed> $errorDetails[, bool $short = true ]) : string
Parameters
$errorDetails : array<string|int, mixed>
$short : bool = true
Return values
string

        
On this page

Search results