Reorder and Added missing databases
This commit is contained in:
20
src/Exception/Database/BlankResult.php
Normal file
20
src/Exception/Database/BlankResult.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
namespace ProVM\Exception\Database;
|
||||
|
||||
use Throwable;
|
||||
use ProVM\Exception\Database;
|
||||
|
||||
class BlankResult extends Database
|
||||
{
|
||||
public function __construct(?string $table = null, ?string $query = null, ?Throwable $previous = null)
|
||||
{
|
||||
$message = implode('', [
|
||||
"No results found",
|
||||
($query !== null) ? " in {$query}" : '',
|
||||
($table !== null) ? " in {$table}" : '',
|
||||
'.'
|
||||
]);
|
||||
$code = 1;
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user