class ErrorHandler extends ErrorHandler

System Error Handler Handles application exception events.

Based on: october\ErrorHandler

Properties

static protected mixed $activeMask from  ErrorHandler
static protected array $maskLayers from  ErrorHandler

Methods

handleException(Throwable $proposedException)

No description

static void
applyMask(Exception $exception)

Prepares a mask exception to be used when any exception fires.

static void
removeMask()

Destroys the prepared mask by applyMask()

static string
getDetailedMessage(Exception $exception)

Returns a more descriptive error message if application debug mode is turned on.

void
beforeHandleError($exception)

We are about to display an error page to the user, provide an opportunity to handle extra functions.

mixed
handleCustomError()

Looks up an error page using the route "/error". If the route does not exist, this function will use the error view found in the MAIN app.

View
handleDetailedError($exception)

Displays the detailed system exception page.

Details

in ErrorHandler at line 27
handleException(Throwable $proposedException)

No description

Parameters

Throwable $proposedException

in ErrorHandler at line 76
static void applyMask(Exception $exception)

Prepares a mask exception to be used when any exception fires.

Parameters

Exception $exception

The mask exception.

Return Value

void

in ErrorHandler at line 89
static void removeMask()

Destroys the prepared mask by applyMask()

Return Value

void

in ErrorHandler at line 105
static string getDetailedMessage(Exception $exception)

Returns a more descriptive error message if application debug mode is turned on.

Parameters

Exception $exception

Return Value

string

at line 23
void beforeHandleError($exception)

We are about to display an error page to the user, provide an opportunity to handle extra functions.

Parameters

$exception

Return Value

void

at line 35
mixed handleCustomError()

Looks up an error page using the route "/error". If the route does not exist, this function will use the error view found in the MAIN app.

Return Value

mixed

Error page contents.

at line 71
View handleDetailedError($exception)

Displays the detailed system exception page.

Parameters

$exception

Return Value

View

Object containing the error page.