class Illuminate / Foundation / Bootstrap / HandleExceptions
You are viewing an older version of the documentation. For the latest, please visit master documentation.

HandleExceptions

Properties

public static

$reservedMemory string

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

Default: null
protected

$app Application

The application instance.

Default: null

Methods

public

bootstrap ( Application $app ) : void

Bootstrap the given application.

Parameters

public

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

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

Parameters

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

handleDeprecation ( $message , $file , $line ) : void

Reports a deprecation to the "deprecations" logger.

Parameters

  • $message string
  • $file string
  • $line int
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

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.