Added exceptions with base numbering 300

This commit is contained in:
2022-12-22 18:58:26 -03:00
parent cc7cd638e3
commit 2c6c0e6e55
2 changed files with 26 additions and 0 deletions

View 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);
}
}