42extends BadMethodCallException
62 if (!in_array(
$code, $ptCodes)) {
65 .
' passed. Must be one of PHPCAS_SERVICE_PT_FAILURE, PHPCAS_SERVICE_PT_NO_SERVER_RESPONSE, or PHPCAS_SERVICE_PT_BAD_SERVER_RESPONSE.'
An exception for terminatinating execution or to throw for unit testing.
An Exception for errors related to fetching or validating proxy tickets.
__construct($message, $code=PHPCAS_SERVICE_PT_FAILURE)
Constructor.
const PHPCAS_SERVICE_PT_NO_SERVER_RESPONSE
phpCAS::service() error code when the PT could not retrieve because the CAS server did not respond.
const PHPCAS_SERVICE_PT_BAD_SERVER_RESPONSE
phpCAS::service() error code when the PT could not retrieve because the response of the CAS server wa...
const PHPCAS_SERVICE_PT_FAILURE
phpCAS::service() error code when the PT could not retrieve because the CAS server did not want to.
A root exception interface for all exceptions in phpCAS.
catch(Exception $e) $message