| 1 | <?php |
||
| 11 | class CasException extends \Exception |
||
| 12 | { |
||
| 13 | const INVALID_REQUEST = 'INVALID_REQUEST'; |
||
| 14 | const INVALID_TICKET = 'INVALID_TICKET'; |
||
| 15 | const INVALID_SERVICE = 'INVALID_SERVICE'; |
||
| 16 | const INTERNAL_ERROR = 'INTERNAL_ERROR'; |
||
| 17 | const UNAUTHORIZED_SERVICE_PROXY = 'UNAUTHORIZED_SERVICE_PROXY'; |
||
| 18 | |||
| 19 | protected $casErrorCode; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * CasException constructor. |
||
| 23 | * @param string $casErrorCode |
||
| 24 | * @param string $msg |
||
| 25 | */ |
||
| 26 | 12 | public function __construct($casErrorCode, $msg = '') |
|
| 31 | |||
| 32 | /** |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | 8 | public function getCasErrorCode() |
|
| 39 | |||
| 40 | 3 | public function getCasMsg() |
|
| 45 | } |
||
| 46 |