ErrorHandlerInterface
in
Error handler interface
Table of Contents
Constants
- CONSOLE_RENDER_TYPE = 'console'
- HTML_RENDER_TYPE = 'html'
- JSON_RENDER_TYPE = 'json'
Methods
- renderError() : string
- Render error
Constants
CONSOLE_RENDER_TYPE
public
mixed
CONSOLE_RENDER_TYPE
= 'console'
HTML_RENDER_TYPE
public
mixed
HTML_RENDER_TYPE
= 'html'
JSON_RENDER_TYPE
public
mixed
JSON_RENDER_TYPE
= 'json'
Methods
renderError()
Render error
public
renderError(Throwable $exception, string $renderType) : string
Parameters
- $exception : Throwable
-
The caught Throwable object
- $renderType : string