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

Protected properties

protected string $fatalError

Object used for storing a fatal error.

Public methods

public void getFatalError()

getFatalError returns error message

public void handleError($exception)

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

  • $exception

public boolean hasFatalError()