Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
23 lines (20 sloc)
627 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @author Ivan Kurnosov <zerkms@zerkms.com> | |
* @copyright Copyright (c) Alex Bilbie | |
* @license http://mit-license.org/ | |
* | |
* @link https://github.com/thephpleague/oauth2-server | |
*/ | |
namespace League\OAuth2\Server\Exception; | |
class UniqueTokenIdentifierConstraintViolationException extends OAuthServerException | |
{ | |
/** | |
* @return UniqueTokenIdentifierConstraintViolationException | |
*/ | |
public static function create() | |
{ | |
$errorMessage = 'Could not create unique access token identifier'; | |
return new static($errorMessage, 100, 'access_token_duplicate', 500); | |
} | |
} |