diff --git a/modules/backend/traits/ErrorMaker.php b/modules/backend/traits/ErrorMaker.php index 61146bb1f..5587fe4ce 100644 --- a/modules/backend/traits/ErrorMaker.php +++ b/modules/backend/traits/ErrorMaker.php @@ -16,6 +16,22 @@ trait ErrorMaker */ protected $fatalError; + /** + * @return boolean Wether a fatal error has been set or not. + */ + public function hasFatalError() + { + return !is_null($this->fatalError); + } + + /** + * @return string The fatal error message + */ + public function getFatalError() + { + return $this->fatalError; + } + /** * Sets standard page variables in the case of a controller error. */