phpCAS  version 1.4.0
ProxyTicketException.php
Go to the documentation of this file.
1 <?php
2 
42 extends BadMethodCallException
43 implements 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 }
__construct($message, $code=PHPCAS_SERVICE_PT_FAILURE)
const PHPCAS_SERVICE_PT_FAILURE
Definition: CAS.php:183
const PHPCAS_SERVICE_PT_NO_SERVER_RESPONSE
Definition: CAS.php:173
const PHPCAS_SERVICE_PT_BAD_SERVER_RESPONSE
Definition: CAS.php:178