From 0fbe44786235e9a4e1cb5beea32ea02eedb0f876 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Fri, 15 Jan 2016 00:17:13 +0000 Subject: [PATCH] Removed old exceptions --- src/Exception/InvalidRefreshException.php | 36 ---------------------- src/Exception/ServerErrorException.php | 37 ----------------------- 2 files changed, 73 deletions(-) delete mode 100644 src/Exception/InvalidRefreshException.php delete mode 100644 src/Exception/ServerErrorException.php diff --git a/src/Exception/InvalidRefreshException.php b/src/Exception/InvalidRefreshException.php deleted file mode 100644 index 5ca3d921..00000000 --- a/src/Exception/InvalidRefreshException.php +++ /dev/null @@ -1,36 +0,0 @@ - - * @copyright Copyright (c) Alex Bilbie - * @license http://mit-license.org/ - * @link https://github.com/thephpleague/oauth2-server - */ - -namespace League\OAuth2\Server\Exception; - -/** - * Exception class - */ -class InvalidRefreshException extends OAuthException -{ - /** - * {@inheritdoc} - */ - public $httpStatusCode = 400; - - /** - * {@inheritdoc} - */ - public $errorType = 'invalid_request'; - - /** - * {@inheritdoc} - */ - public function __construct() - { - parent::__construct('The refresh token is invalid.'); - } -} diff --git a/src/Exception/ServerErrorException.php b/src/Exception/ServerErrorException.php deleted file mode 100644 index fe5a7df1..00000000 --- a/src/Exception/ServerErrorException.php +++ /dev/null @@ -1,37 +0,0 @@ - - * @copyright Copyright (c) Alex Bilbie - * @license http://mit-license.org/ - * @link https://github.com/thephpleague/oauth2-server - */ - -namespace League\OAuth2\Server\Exception; - -/** - * Exception class - */ -class ServerErrorException extends OAuthException -{ - /** - * {@inheritdoc} - */ - public $httpStatusCode = 500; - - /** - * {@inheritdoc} - */ - public $errorType = 'server_error'; - - /** - * {@inheritdoc} - */ - public function __construct($parameter = null) - { - $parameter = is_null($parameter) ? 'The authorization server encountered an unexpected condition which prevented it from fulfilling the request.' : $parameter; - parent::__construct($parameter); - } -}