class HandleExceptions (View source)
static string | $reservedMemory | Reserved memory so that errors can be displayed properly on memory exhaustion. | |
protected Application | $app | The application instance. |
void | bootstrap(Application $app) Bootstrap the given application. | |
void | handleError(int $level, string $message, string $file = '', int $line = 0, array $context = []) Convert PHP errors to ErrorException instances. | |
void | handleException(Throwable $e) Handle an uncaught exception from the application. | |
void | renderForConsole(Throwable $e) Render an exception to the console. | |
void | renderHttpResponse(Throwable $e) Render an exception as an HTTP response and send it. | |
void | handleShutdown() Handle the PHP shutdown event. | |
FatalError | fatalErrorFromPhpError(array $error, int|null $traceOffset = null) Create a new fatal error instance from an error array. | |
bool | isFatal(int $type) Determine if the error type is fatal. | |
ExceptionHandler | getExceptionHandler() Get an instance of the exception handler. |
Bootstrap the given application.
Convert PHP errors to ErrorException instances.
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.
Render an exception to the console.
Render an exception as an HTTP response and send it.
Handle the PHP shutdown event.
Create a new fatal error instance from an error array.
Determine if the error type is fatal.
Get an instance of the exception handler.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Foundation/Bootstrap/HandleExceptions.html