Added exceptions with base numbering 300
This commit is contained in:
11
src/Database/Exception.php
Normal file
11
src/Database/Exception.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
namespace ProVM\Database;
|
||||
|
||||
class Exception extends \Exception
|
||||
{
|
||||
public function __construct(string $message = "", int $code = 0, ?Throwable $previous = null)
|
||||
{
|
||||
$code += 300;
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user