It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.





Class CAS_GracefullTerminationException

An exception for terminatinating execution or to throw for unit testing

Exception implements Throwable
Extended by RuntimeException
Extended by CAS_GracefullTerminationException implements CAS_Exception
Package: PhpCAS
Category: Authentication
License: Apache License 2.0
Author: Joachim Fritschi
Author: Adam Franco
Class: CAS_GracefullTerminationException.php
Located at shared/cas/source/CAS/GracefullTerminationException.php
Methods summary
# __construct( string $message = 'Terminate Gracefully', string $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.

public static
# throwInsteadOfExiting( )

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.

Methods inherited from Exception
__toString(), __wakeup(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()
Properties summary
private static boolean $_exitWhenThrown
# true
Properties inherited from Exception
$code, $file, $line, $message

© 2004-2022 – Nicola Asuni - - All rights reserved.
about - disclaimer - privacy