Documentation

ErrorMaker

Error Maker Trait Adds exception based methods to a class, goes well with `System\Traits\ViewMaker`.

Tags
author

Alexey Bobkov, Samuel Georges

Table of Contents

$fatalError  : string
getFatalError()  : string
handleError()  : mixed
Sets standard page variables in the case of a controller error.
hasFatalError()  : bool

Properties

$fatalError

protected string $fatalError

Object used for storing a fatal error.

Methods

getFatalError()

public getFatalError() : string
Return values
string

The fatal error message

handleError()

Sets standard page variables in the case of a controller error.

public handleError(mixed $exception) : mixed
Parameters
$exception : mixed
Return values
mixed

hasFatalError()

public hasFatalError() : bool
Return values
bool

Whether a fatal error has been set or not.

Search results