| Methods |
public
|
__construct(
string $connectionName,
string $sql,
array $bindings,
Throwable $previous,
array $connectionDetails = [],
null|'read'|'write' $readWriteType = null,
)
Create a new query exception instance.
Create a new query exception instance.
Overrides
|
#
|
protected
|
formatMessage(string $connectionName, string $sql, array $bindings, Throwable $previous): string
Format the SQL error message.
Format the SQL error message.
|
#
|
protected
|
formatConnectionDetails(): string
Format the connection details for the error message.
Format the connection details for the error message.
|
#
|
public
|
getConnectionName(): string
Get the connection name for the query.
Get the connection name for the query.
|
#
|
public
|
getSql(): string
Get the SQL for the query.
Get the SQL for the query.
|
#
|
public
|
getRawSql(): string
Get the raw SQL representation of the query with embedded bindings.
Get the raw SQL representation of the query with embedded bindings.
|
#
|
public
|
getBindings(): array
Get the bindings for the query.
Get the bindings for the query.
|
#
|
public
|
getConnectionDetails(): array
Get information about the connection such as host, port, database, etc.
Get information about the connection such as host, port, database, etc.
|
#
|