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:
11
src/Exception/Provider/PermissionErrorException.php
Normal file
11
src/Exception/Provider/PermissionErrorException.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exception\Provider;
|
||||
|
||||
class PermissionErrorException extends AbstractProviderException
|
||||
{
|
||||
public static function fromIdentifier(string $identifier): self
|
||||
{
|
||||
return new self("Not enough permissions for identifier $identifier");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user