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