ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Public Member Functions | |
__construct ($message='Terminate Gracefully', $code=0) | |
Test if exceptions should be thrown or if we should just exit. More... | |
Static Public Member Functions | |
static | throwInsteadOfExiting () |
Force phpcas to thow Exceptions instead of calling exit() Needed for unit testing. More... | |
Static Private Attributes | |
static | $_exitWhenThrown = true |
Definition at line 43 of file GracefullTerminationException.php.
CAS_GracefullTerminationException::__construct | ( | $message = 'Terminate Gracefully' , |
|
$code = 0 |
|||
) |
Test if exceptions should be thrown or if we should just exit.
In production usage we want to just exit cleanly when prompting the user for a redirect without filling the error logs with uncaught exceptions. In unit testing scenarios we cannot exit or we won't be able to continue with our tests.
string | $message | Message Text |
string | $code | Error code |
Definition at line 58 of file GracefullTerminationException.php.
References $message, ILIAS\GlobalScreen\Provider\__construct(), and exit.
|
static |
Force phpcas to thow Exceptions instead of calling exit() Needed for unit testing.
Generally shouldn't be used in production due to an increase in Apache error logging if CAS_GracefulTerminiationExceptions are not caught and handled.
Definition at line 78 of file GracefullTerminationException.php.
|
staticprivate |
Definition at line 69 of file GracefullTerminationException.php.