Moved AuthenticationException to Rest module

This commit is contained in:
Alejandro Celaya
2016-07-19 17:27:55 +02:00
parent 7efb3b3a86
commit 8fc88171ee
6 changed files with 17 additions and 12 deletions

View File

@@ -0,0 +1,12 @@
<?php
namespace Shlinkio\Shlink\Rest\Exception;
use Acelaya\UrlShortener\Exception\ExceptionInterface;
class AuthenticationException extends \RuntimeException implements ExceptionInterface
{
public static function fromCredentials($username, $password)
{
return new self(sprintf('Invalid credentials. Username -> "%s". Password -> "%s"', $username, $password));
}
}