for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: chenyihong
* Date: 16/8/1
* Time: 18:05
*/
namespace Leo108\CAS\Exceptions\CAS;
class CasException extends \Exception
{
const INVALID_REQUEST = 'INVALID_REQUEST';
const INVALID_TICKET = 'INVALID_TICKET';
const INVALID_SERVICE = 'INVALID_SERVICE';
const INTERNAL_ERROR = 'INTERNAL_ERROR';
const UNAUTHORIZED_SERVICE_PROXY = 'UNAUTHORIZED_SERVICE_PROXY';
protected $casErrorCode;
* CasException constructor.
* @param string $casErrorCode
* @param string $msg
public function __construct($casErrorCode, $msg = '')
$this->casErrorCode = $casErrorCode;
$this->message = $msg;
}
* @return string
public function getCasErrorCode()
return $this->casErrorCode;
public function getCasMsg()
//todo translate error msg