shlink/src/Exception/AuthenticationException.php

11 lines
331 B
PHP
Raw Normal View History

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