mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Added hasFatalError() and getFatalError() (#3904)
Credit to @tschallacka
This commit is contained in:
parent
c5af51df25
commit
6d3e751a38
@ -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.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user