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

13 lines
387 B
PHP
Raw Normal View History

<?php
namespace Shlinkio\Shlink\Rest\Exception;
2016-07-19 19:01:39 +03:00
use Shlinkio\Shlink\Core\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));
}
}