3 namespace app\Github\Exception
;
5 use app\Github\Exception\TokenException
;
7 class TokenExpired
extends \Exception
implements TokenException
11 function __construct($seconds, $previous = null) {
12 $this->seconds
= abs($seconds);
13 parent
::__construct("Token expired $this->seconds seconds ago", 0, $previous);
16 function getSeconds() {
17 return $this->seconds
;