Add DatabaseOperationException class
This commit is contained in:
parent
e331a3ed90
commit
4f84d483b8
1 changed files with 14 additions and 0 deletions
14
src/Socialbox/Exceptions/DatabaseOperationException.php
Normal file
14
src/Socialbox/Exceptions/DatabaseOperationException.php
Normal file
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
namespace Socialbox\Exceptions;
|
||||
|
||||
use Exception;
|
||||
use Throwable;
|
||||
|
||||
class DatabaseOperationException extends Exception
|
||||
{
|
||||
public function __construct(string $message, ?Throwable $throwable=null)
|
||||
{
|
||||
parent::__construct($message, 500, $throwable);
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue