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/UnsupportedDsnSchemeException.php
Normal file
11
src/Exception/UnsupportedDsnSchemeException.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exception;
|
||||
|
||||
class UnsupportedDsnSchemeException extends \Exception
|
||||
{
|
||||
public static function fromScheme(string $scheme): UnsupportedDsnSchemeException
|
||||
{
|
||||
return new UnsupportedDsnSchemeException("The DSN scheme ($scheme) is not supported");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user