chore: complete update
This commit is contained in:
9
src/Framework/Database/Exception/DatabaseException.php
Normal file
9
src/Framework/Database/Exception/DatabaseException.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Framework\Database\Exception;
|
||||
|
||||
class DatabaseException extends \Exception
|
||||
{
|
||||
}
|
||||
13
src/Framework/Database/Exception/EntityNotFoundException.php
Normal file
13
src/Framework/Database/Exception/EntityNotFoundException.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Framework\Database\Exception;
|
||||
|
||||
class EntityNotFoundException extends DatabaseException
|
||||
{
|
||||
public function __construct(string $entityClass, mixed $id, ?\Throwable $previous = null)
|
||||
{
|
||||
parent::__construct("Entity {$entityClass} with ID {$id} not found", 0, $previous);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user