class HandleExceptions (View source)
| static string|null | $reservedMemory | Reserved memory so that errors can be displayed properly on memory exhaustion. | |
| static 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)
Report PHP deprecations, or convert PHP errors to ErrorException instances. | |
| void | handleDeprecationError(string $message, string $file, int $line, int $level = E_DEPRECATED)
Reports a deprecation to the "deprecations" logger. | |
| bool | shouldIgnoreDeprecationErrors()
Determine if deprecation errors should be ignored. | |
| void | ensureDeprecationLoggerIsConfigured()
Ensure the "deprecations" logger is configured. | |
| void | ensureNullLogDriverIsConfigured()
Ensure the "null" log driver is configured. | |
| 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. | |
| callable | forwardsTo($method)
Forward a method call to the given method if an application instance exists. | |
| bool | isDeprecation(int $level)
Determine if the error level is a deprecation. | |
| bool | isFatal(int $type)
Determine if the error type is fatal. | |
| ExceptionHandler | getExceptionHandler()
Get an instance of the exception handler. | |
| static void | forgetApp() deprecated
Clear the local application instance from memory. | |
| static void | flushState()
Flush the bootstrapper's global state. | |
| static void | flushHandlersState()
Flush the bootstrapper's global handlers state. |
Bootstrap the given application.
Report PHP deprecations, or convert PHP errors to ErrorException instances.
Reports a deprecation to the "deprecations" logger.
Determine if deprecation errors should be ignored.
Ensure the "deprecations" logger is configured.
Ensure the "null" log driver is configured.
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.
Forward a method call to the given method if an application instance exists.
Determine if the error level is a deprecation.
Determine if the error type is fatal.
Get an instance of the exception handler.
deprecated
Clear the local application instance from memory.
Flush the bootstrapper's global state.
Flush the bootstrapper's global handlers state.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Foundation/Bootstrap/HandleExceptions.html