class ErrorHandler

System Error Handler, this class handles application exception events.

Properties

static protected mixed $activeMask
static protected array $maskLayers

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()

Check if using a custom error page, if so return the contents.

View
handleDetailedError($exception)

Displays the detailed system exception page.

Details

at line 27
handleException(Throwable $proposedException)

No description

Parameters

Throwable $proposedException

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

at line 89
static void removeMask()

Destroys the prepared mask by applyMask()

Return Value

void

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 131
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 140
mixed handleCustomError()

Check if using a custom error page, if so return the contents.

Return NULL if a custom error is not set up.

Return Value

mixed

Error page contents.

at line 148
View handleDetailedError($exception)

Displays the detailed system exception page.

Parameters

$exception

Return Value

View

Object containing the error page.