Added hasFatalError() and getFatalError() (#3904)

Credit to @tschallacka
This commit is contained in:
Tschallacka 2019-04-19 23:24:21 +02:00 committed by Luke Towers
parent c5af51df25
commit 6d3e751a38

View File

@ -16,6 +16,22 @@ trait ErrorMaker
*/ */
protected $fatalError; 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. * Sets standard page variables in the case of a controller error.
*/ */