class ApplicationError implements ErrorHandlerInterface

Application error handler

Properties

protected ErrorRendererInterface $htmlRenderer Html renderer
protected ErrorRendererInterface $jsonRenderer Json renderer

Methods

__construct(ErrorRendererInterface $htmlRenderer)

Constructor

string
renderError(Throwable $exception, string $renderType)

Render error

Details

at line 43
__construct(ErrorRendererInterface $htmlRenderer)

Constructor

Parameters

ErrorRendererInterface $htmlRenderer

at line 56
string renderError(Throwable $exception, string $renderType)

Render error

Parameters

Throwable $exception The caught Throwable object
string $renderType

Return Value

string