UserFrosting API

ExceptionHandlerInterface

All exception handlers must implement this interface.

Tags
author

Alex Weissman (https://alexanderweissman.com)

Table of Contents

__construct() mixed
handle() ResponseInterface
renderDebugResponse() ResponseInterface
renderGenericResponse() ResponseInterface
writeToErrorLog() Write to the error log. mixed
writeAlerts() Write user-friendly error messages to the alert message stream. mixed

Methods

__construct()

public __construct( $ci : ContainerInterface , $request : ServerRequestInterface , $response : ResponseInterface , $exception : Throwable [, $displayErrorDetails : bool = false ] ) : mixed
Parameters
$ci : ContainerInterface
$request : ServerRequestInterface
$response : ResponseInterface
$exception : Throwable
$displayErrorDetails : bool = false
Return values
mixed

writeAlerts()

Write user-friendly error messages to the alert message stream.

public writeAlerts( ) : mixed
Return values
mixed

Search results