Documentation

QueryException extends PDOException
in package

Table of Contents

$bindings  : array<string|int, mixed>
The bindings for the query.
$sql  : string
The SQL for the query.
__construct()  : void
Create a new query exception instance.
getBindings()  : array<string|int, mixed>
Get the bindings for the query.
getSql()  : string
Get the SQL for the query.
formatMessage()  : string
Format the SQL error message.

Properties

$bindings

The bindings for the query.

protected array<string|int, mixed> $bindings

Methods

__construct()

Create a new query exception instance.

public __construct(string $sql, array<string|int, mixed> $bindings, Exception $previous) : void
Parameters
$sql : string
$bindings : array<string|int, mixed>
$previous : Exception
Return values
void

getBindings()

Get the bindings for the query.

public getBindings() : array<string|int, mixed>
Return values
array<string|int, mixed>

getSql()

Get the SQL for the query.

public getSql() : string
Return values
string

formatMessage()

Format the SQL error message.

protected formatMessage(string $sql, array<string|int, mixed> $bindings, Exception $previous) : string
Parameters
$sql : string
$bindings : array<string|int, mixed>
$previous : Exception
Return values
string

Search results