mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
refactor: change log level and add exceptions
This commit is contained in:
16
src/Exception/Provider/InvalidLoginException.php
Normal file
16
src/Exception/Provider/InvalidLoginException.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user