phpCAS
version 1.4.0
CAS
ProxyTicketException.php
Go to the documentation of this file.
1
<?php
2
41
class
CAS_ProxyTicketException
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(
58
PHPCAS_SERVICE_PT_FAILURE
,
59
PHPCAS_SERVICE_PT_NO_SERVER_RESPONSE
,
60
PHPCAS_SERVICE_PT_BAD_SERVER_RESPONSE
,
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
}
CAS_ProxyTicketException\__construct
__construct($message, $code=PHPCAS_SERVICE_PT_FAILURE)
Definition:
ProxyTicketException.php:54
PHPCAS_SERVICE_PT_FAILURE
const PHPCAS_SERVICE_PT_FAILURE
Definition:
CAS.php:183
PHPCAS_SERVICE_PT_NO_SERVER_RESPONSE
const PHPCAS_SERVICE_PT_NO_SERVER_RESPONSE
Definition:
CAS.php:173
PHPCAS_SERVICE_PT_BAD_SERVER_RESPONSE
const PHPCAS_SERVICE_PT_BAD_SERVER_RESPONSE
Definition:
CAS.php:178
CAS_ProxyTicketException
Definition:
ProxyTicketException.php:41
CAS_Exception
Definition:
Exception.php:55
Generated by
1.8.13