shlink/module/Rest/src/Exception/AuthenticationException.php

13 lines
277 B
PHP
Raw Normal View History

<?php
2017-10-12 11:13:20 +03:00
declare(strict_types=1);
namespace Shlinkio\Shlink\Rest\Exception;
class AuthenticationException extends RuntimeException
{
public static function expiredJWT(\Exception $prev = null): self
2016-08-07 15:44:33 +03:00
{
return new self('The token has expired.', -1, $prev);
}
}