ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ProxyTicketException.php
Go to the documentation of this file.
1<?php
2
43implements CAS_Exception
44{
45
54 public function __construct ($message, $code = PHPCAS_SERVICE_PT_FAILURE)
55 {
56 // Warn if the code is not in our allowed list
57 $ptCodes = array(
61 );
62 if (!in_array($code, $ptCodes)) {
63 trigger_error(
64 'Invalid code '.$code
65 .' passed. Must be one of PHPCAS_SERVICE_PT_FAILURE, PHPCAS_SERVICE_PT_NO_SERVER_RESPONSE, or PHPCAS_SERVICE_PT_BAD_SERVER_RESPONSE.'
66 );
67 }
68
69 parent::__construct($message, $code);
70 }
71}
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.
$code
Definition: example_050.php:99
const PHPCAS_SERVICE_PT_NO_SERVER_RESPONSE
phpCAS::service() error code when the PT could not retrieve because the CAS server did not respond.
Definition: CAS.php:173
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...
Definition: CAS.php:178
const PHPCAS_SERVICE_PT_FAILURE
phpCAS::service() error code when the PT could not retrieve because the CAS server did not want to.
Definition: CAS.php:183
A root exception interface for all exceptions in phpCAS.
Definition: Exception.php:56