ExceptionHandlerInterface
All exception handlers must implement this interface.
Tags
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
mixedhandle()
public
handle(
)
: ResponseInterface
Return values
ResponseInterfacerenderDebugResponse()
public
renderDebugResponse(
)
: ResponseInterface
Return values
ResponseInterfacerenderGenericResponse()
public
renderGenericResponse(
)
: ResponseInterface
Return values
ResponseInterfacewriteToErrorLog()
Write to the error log.
public
writeToErrorLog(
)
: mixed
Return values
mixedwriteAlerts()
Write user-friendly error messages to the alert message stream.
public
writeAlerts(
)
: mixed