Handler
class Handler extends Handler
Properties
protected array | $dontReport | A list of the exception types that should not be reported. |
|
protected array | $handlers | All of the register exception handlers. |
Methods
Checks if the exception implements the HttpExceptionInterface, or returns as generic 500 error code for a server side error.
Get the default context variables for logging.
Determine if the given handler handles this exception.
Determine if the given handler type hints the exception.
Details
at line 51
void
report(Throwable $e)
Report or log an exception.
at line 101
Response
render(Request $request, Throwable $e)
Render an exception into an HTTP response.
at line 131
protected int
getStatusCode(Throwable $exception)
Checks if the exception implements the HttpExceptionInterface, or returns as generic 500 error code for a server side error.
at line 151
protected array
context()
Get the default context variables for logging.
at line 166
void
error(Closure $callback)
Register an application error handler.
at line 177
protected
callCustomHandlers(Throwable $exception, bool $fromConsole = false)
Handle the given exception.
at line 214
protected bool
handlesException(Closure $handler, Throwable $exception)
Determine if the given handler handles this exception.
at line 228
protected bool
hints(ReflectionFunction $reflection, Throwable $exception)
Determine if the given handler type hints the exception.