Backend\Traits\ErrorMaker

Overview

ErrorMaker Trait adds exception based methods to a class, goes well with [System\Traits\ViewMaker](/docs/api/system/traits/viewmaker)


Protected Properties

protected string|null $fatalError

fatalError stores the object used for a fatal error.


Public Methods

public getFatalError()

public getFatalError(): void

getFatalError returns error message

public handleError()

public handleError($exception): void

handleError sets standard page variables in the case of a controller error.

public hasFatalError()

public hasFatalError(): void

hasFatalError returns true if a fatal error has been set.