mirror of
https://github.com/shlinkio/shlink.git
synced 2025-01-10 05:47:31 +03:00
11 lines
331 B
PHP
11 lines
331 B
PHP
|
<?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));
|
||
|
}
|
||
|
}
|