Backend\Traits\ErrorMaker

Source: ~/modules/backend/traits/ErrorMaker.php

Error Maker 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 string getFatalError()

public void handleError($exception)

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

Parameters
  • $exception

public boolean hasFatalError()