class QueryException extends PDOException (View source)
| string | $connectionName | The database connection name. | |
| protected string | $sql | The SQL for the query. | |
| protected array | $bindings | The bindings for the query. |
| void | __construct(string $connectionName, string $sql, array $bindings, Throwable $previous)
Create a new query exception instance. | |
| string | formatMessage(string $connectionName, string $sql, array $bindings, Throwable $previous)
Format the SQL error message. | |
| string | getConnectionName()
Get the connection name for the query. | |
| string | getSql()
Get the SQL for the query. | |
| array | getBindings()
Get the bindings for the query. |
Create a new query exception instance.
Format the SQL error message.
Get the connection name for the query.
Get the SQL for the query.
Get the bindings for the query.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Database/QueryException.html