HandleExceptions
final class HandleExceptions extends HandleExceptions
| internal |
Properties
| static string|null | $reservedMemory | Reserved memory so that errors can be displayed properly on memory exhaustion. |
from HandleExceptions |
| static protected Application|null | $app | The application instance. |
from HandleExceptions |
Methods
Report PHP deprecations, or convert PHP errors to ErrorException instances.
No description
Determine if deprecation errors should be ignored.
Ensure the "deprecations" logger is configured.
Ensure the "null" log driver is configured.
Create a new fatal error instance from an error array.
Forward a method call to the given method if an application instance exists.
Get an instance of the exception handler.
Flush all static state.
Flush the bootstrapper's global handlers state.
Details
in
HandleExceptions at line 35
void
bootstrap(Application $app)
Bootstrap the given application.
in
HandleExceptions at line 59
void
handleError(int $level, string $message, string $file = '', int $line = 0)
Report PHP deprecations, or convert PHP errors to ErrorException instances.
at line 22
void
handleDeprecationError(string $message, string $file, int $line, int $level = E_DEPRECATED)
No description
at line 73
protected bool
shouldIgnoreDeprecationErrors()
Determine if deprecation errors should be ignored.
at line 39
protected void
ensureDeprecationLoggerIsConfigured()
Ensure the "deprecations" logger is configured.
in
HandleExceptions at line 141
protected void
ensureNullLogDriverIsConfigured()
Ensure the "null" log driver is configured.
in
HandleExceptions at line 162
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.
in
HandleExceptions at line 192
protected void
renderForConsole(Throwable $e)
Render an exception to the console.
in
HandleExceptions at line 200
void
handleShutdown()
Handle the PHP shutdown event.
in
HandleExceptions at line 212
protected FatalError
fatalErrorFromPhpError(array $error, int|null $traceOffset = null)
Create a new fatal error instance from an error array.
in
HandleExceptions at line 220
protected callable
forwardsTo(string $method)
Forward a method call to the given method if an application instance exists.
in
HandleExceptions at line 230
protected bool
isDeprecation(int $level)
Determine if the error level is a deprecation.
in
HandleExceptions at line 238
protected bool
isFatal(int $type)
Determine if the error type is fatal.
in
HandleExceptions at line 246
protected ExceptionHandler
getExceptionHandler()
Get an instance of the exception handler.
in
HandleExceptions at line 254
static void
flushState(TestCase|null $testCase = null)
Flush all static state.
in
HandleExceptions at line 270
static void
flushHandlersState(TestCase|null $testCase = null)
Flush the bootstrapper's global handlers state.