class Illuminate / Foundation / Bootstrap / HandleExceptions
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

HandleExceptions

Properties

public static

$reservedMemory string|null

Reserved memory so that errors can be displayed properly on memory exhaustion.

Default: null
protected static

$app Application

The application instance.

Default: null

Methods

public

bootstrap ( Application $app ) : void

Bootstrap the given application.

Parameters

public

handleError ( $level , $message , $file , $line ) : void

Report PHP deprecations, or convert PHP errors to ErrorException instances.

Parameters

  • $level int
  • $message string
  • $file string
  • $line int
public

handleDeprecationError ( $message , $file , $line , $level ) : void

Reports a deprecation to the "deprecations" logger.

Parameters

  • $message string
  • $file string
  • $line int
  • $level int
protected

shouldIgnoreDeprecationErrors ( ) : bool

Determine if deprecation errors should be ignored.

protected

ensureDeprecationLoggerIsConfigured ( ) : void

Ensure the "deprecations" logger is configured.

protected

ensureNullLogDriverIsConfigured ( ) : void

Ensure the "null" log driver is configured.

public

handleException ( Throwable $e ) : void

Handle an uncaught exception from the application.

Parameters

protected

renderForConsole ( Throwable $e ) : void

Render an exception to the console.

Parameters

protected

renderHttpResponse ( Throwable $e ) : void

Render an exception as an HTTP response and send it.

Parameters

public

handleShutdown ( ) : void

Handle the PHP shutdown event.

protected

fatalErrorFromPhpError ( array $error , $traceOffset ) : Symfony\...\FatalError

Create a new fatal error instance from an error array.

Parameters

  • $error array
  • $traceOffset int|null
protected

forwardsTo ( $method ) : callable

Forward a method call to the given method if an application instance exists.

protected

isDeprecation ( $level ) : bool

Determine if the error level is a deprecation.

Parameters

  • $level int
protected

isFatal ( $type ) : bool

Determine if the error type is fatal.

Parameters

  • $type int
protected

getExceptionHandler ( ) : ExceptionHandler

Get an instance of the exception handler.

public static

forgetApp ( ) : void

Clear the local application instance from memory.