class QueryException extends PDOException

Properties

protected string $sql

The SQL for the query.

protected array $bindings

The bindings for the query.

Methods

void
__construct(string $sql, array $bindings, Exception $previous)

Create a new query exception instance.

string
formatMessage(string $sql, array $bindings, Exception $previous)

Format the SQL error message.

string
getSql()

Get the SQL for the query.

array
getBindings()

Get the bindings for the query.

Details

at line 32
void __construct(string $sql, array $bindings, Exception $previous)

Create a new query exception instance.

Parameters

string $sql
array $bindings
Exception $previous

Return Value

void

at line 54
protected string formatMessage(string $sql, array $bindings, Exception $previous)

Format the SQL error message.

Parameters

string $sql
array $bindings
Exception $previous

Return Value

string

at line 64
string getSql()

Get the SQL for the query.

Return Value

string

at line 74
array getBindings()

Get the bindings for the query.

Return Value

array