芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/giga.mgaplay.com.br/vendor/apereo/phpcas/source/CAS/ProxyTicketException.php
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 * @link https://wiki.jasig.org/display/CASC/phpCAS * */ /** * An Exception for errors related to fetching or validating proxy tickets. * * @class CAS_ProxyTicketException * @category Authentication * @package PhpCAS * @author Adam Franco
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 * @link https://wiki.jasig.org/display/CASC/phpCAS */ class CAS_ProxyTicketException extends BadMethodCallException implements CAS_Exception { /** * Constructor * * @param string $message Message text * @param int $code Error code * * @return void */ public function __construct ($message, $code = PHPCAS_SERVICE_PT_FAILURE) { // Warn if the code is not in our allowed list $ptCodes = array( PHPCAS_SERVICE_PT_FAILURE, PHPCAS_SERVICE_PT_NO_SERVER_RESPONSE, PHPCAS_SERVICE_PT_BAD_SERVER_RESPONSE, ); if (!in_array($code, $ptCodes)) { trigger_error( 'Invalid code '.$code .' passed. Must be one of PHPCAS_SERVICE_PT_FAILURE, PHPCAS_SERVICE_PT_NO_SERVER_RESPONSE, or PHPCAS_SERVICE_PT_BAD_SERVER_RESPONSE.' ); } parent::__construct($message, $code); } }