HandleExceptions
class HandleExceptions
Properties
protected Application | $app | The application instance. |
Methods
Convert PHP errors to ErrorException instances.
Handle the PHP shutdown event.
Create a new fatal exception instance from an error array.
Determine if the error type is fatal.
Get an instance of the exception handler.
Details
at line 28
void
bootstrap(Application $app)
Bootstrap the given application.
at line 57
void
handleError(int $level, string $message, string $file = '', int $line = 0, array $context = [])
Convert PHP errors to ErrorException instances.
at line 74
void
handleException(Throwable $e)
Handle an uncaught exception from the application.
Note: Most exceptions can be handled via the try / catch block in the HTTP and Console kernels. But, fatal error exceptions must be handled differently since they are not normal exceptions.
at line 99
protected void
renderForConsole(Exception $e)
Render an exception to the console.
at line 110
protected void
renderHttpResponse(Exception $e)
Render an exception as an HTTP response and send it.
at line 120
void
handleShutdown()
Handle the PHP shutdown event.
at line 134
protected FatalErrorException
fatalExceptionFromError(array $error, int|null $traceOffset = null)
Create a new fatal exception instance from an error array.
at line 147
protected bool
isFatal(int $type)
Determine if the error type is fatal.
at line 157
protected ExceptionHandler
getExceptionHandler()
Get an instance of the exception handler.