ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
CAS_ProxyTicketException Class Reference

An Exception for errors related to fetching or validating proxy tickets. More...

+ Inheritance diagram for CAS_ProxyTicketException:
+ Collaboration diagram for CAS_ProxyTicketException:

Public Member Functions

 __construct ($message, $code=PHPCAS_SERVICE_PT_FAILURE)
 Constructor. More...
 

Detailed Description

An Exception for errors related to fetching or validating proxy tickets.

Definition at line 41 of file ProxyTicketException.php.

Constructor & Destructor Documentation

◆ __construct()

CAS_ProxyTicketException::__construct (   $message,
  $code = PHPCAS_SERVICE_PT_FAILURE 
)

Constructor.

Parameters
string$messageMessage text
int$codeError code
Returns
void

Definition at line 52 of file ProxyTicketException.php.

References $code, $message, PHPCAS_SERVICE_PT_BAD_SERVER_RESPONSE, PHPCAS_SERVICE_PT_FAILURE, and PHPCAS_SERVICE_PT_NO_SERVER_RESPONSE.

53  {
54  // Warn if the code is not in our allowed list
55  $ptCodes = array(
59  );
60  if (!in_array($code, $ptCodes)) {
61  trigger_error(
62  'Invalid code ' . $code
63  . ' passed. Must be one of PHPCAS_SERVICE_PT_FAILURE, PHPCAS_SERVICE_PT_NO_SERVER_RESPONSE, or PHPCAS_SERVICE_PT_BAD_SERVER_RESPONSE.'
64  );
65  }
66 
67  parent::__construct($message, $code);
68  }
$code
Definition: example_050.php:99
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
catch(Exception $e) $message
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

The documentation for this class was generated from the following file: