mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-02 21:23:14 +08:00
13 lines
387 B
PHP
13 lines
387 B
PHP
<?php
|
|
namespace Shlinkio\Shlink\Rest\Exception;
|
|
|
|
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));
|
|
}
|
|
}
|