mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
17 lines
430 B
PHP
17 lines
430 B
PHP
<?php
|
|
|
|
namespace App\Exception\Provider;
|
|
|
|
class InvalidLoginException extends AbstractProviderException
|
|
{
|
|
public function __construct(string $message = '')
|
|
{
|
|
parent::__construct('' === $message ? 'The status of these credentials is not valid' : $message);
|
|
}
|
|
|
|
public static function fromIdentifier(string $identifier): self
|
|
{
|
|
return new self("Invalid login for identifier $identifier");
|
|
}
|
|
}
|