ErrorMaker
Error Maker Trait
Adds exception based methods to a class, goes well with System\Traits\ViewMaker
.
System\Traits\ViewMaker
. trait Backend\Traits\ErrorMaker
Properties
protected $fatalError : string
Object used for storing a fatal error.
Methods
public getFatalError () : string
Returns
string
The fatal error message
public handleError ($exception)
Sets standard page variables in the case of a controller error.
Parameters
Property | Type | Description |
---|---|---|
$exception | mixed |
mixed
|
Returns
mixed
public hasFatalError () : bool
Returns
bool
Whether a fatal error has been set or not.
Copyright © 2023 Winter CMS