Strata\Error\BaseErrorHandler

The base error handler of Strata code. This is very much so based on CakePHP's method.

    Synopsis

    class BaseErrorHandler {
    • // members
    • private boolean $hasError = false;
    }

    Hierarchy

    Members

    private

    • $hasError

    protected

    • $configuration — array
      The configuration cache.

    Methods

    private

    protected

    public

    • handleError() — Set as the default error handler by Strata
    • handleException() — Handle uncaught exceptions.
    • handleFatalError() — Logs a fatal error.
    • register() — Register the error and exception handlers.
    • wrapAndHandleException() — Checks the passed exception type. If it is an instance of `Error` then, it wraps the passed object inside another Exception object for backwards compatibility purposes.

    Inherited from Strata\Core\StrataConfigurableTrait

    protected

    • normalizeConfiguration() — Normalizes the configuration cache. This will only run once on the object. It is mainly a safegard against a badly configured value cache.

    public

    • configure() — Instantiate the configuration cache to the state supplied by $config.
    • containsConfigurations() — Returns whether the configuration cache contains something.
    • extractConfig() — Intelligently extract data from the configuration array.
    • getConfig() — Fetches a value in the configuration array
    • getConfiguration() — Returns the object's complete configuration cache.
    • hasConfig() — Confirms the presence of a value in the custom post type's configuration array
    • setConfig() — Saves a value in the object's configuration array for the duration of the runtime.