class HandleExceptions (View source)

Methods

void
bootstrap( Application $app)

Bootstrap the given application.

void
handleError( int $level, string $message, string $file = '', int $line, array $context = array())

Convert a PHP error to an ErrorException.

void
handleException( Throwable $e)

Handle an uncaught exception from the application.

void
handleShutdown()

Handle the PHP shutdown event.

Details

at line line 27
void bootstrap( Application $app)

Bootstrap the given application.

Parameters

Application $app

Return Value

void

at line line 56
void handleError( int $level, string $message, string $file = '', int $line, array $context = array())

Convert a PHP error to an ErrorException.

Parameters

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

Return Value

void

Exceptions

ErrorException

at line line 73
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.

Parameters

Throwable $e

Return Value

void

at line line 115
void handleShutdown()

Handle the PHP shutdown event.

Return Value

void