-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQueryException.php
More file actions
36 lines (30 loc) · 730 Bytes
/
QueryException.php
File metadata and controls
36 lines (30 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
namespace Litebase\Exceptions;
use Exception;
use Throwable;
class QueryException extends Exception
{
/**
* The parameters of the query.
*
* @var array<int|string, mixed>
*/
protected array $parameters;
/**
* The statement of the query.
*
* @var string
*/
protected $statement;
/**
* Create a new QueryException instance.
*
* @param array<int|string, mixed> $parameters
*/
public function __construct(string $message, string $statement, array $parameters, ?Throwable $previous = null)
{
$this->statement = $statement;
$this->parameters = $parameters;
parent::__construct($message, 0, $previous);
}
}