class Illuminate / Database / QueryException
You are viewing an older version of the documentation. For the latest, please visit master documentation.

QueryException

Extends

Properties

protected

$sql string

The SQL for the query.

Default: null
protected

$bindings array

The bindings for the query.

Default: null

Methods

public

__construct ( $sql , array $bindings , Throwable $previous ) : void

Create a new query exception instance.

Parameters

protected

formatMessage ( $sql , $bindings , Throwable $previous ) : string

Format the SQL error message.

Parameters

public

getSql ( ) : string

Get the SQL for the query.

public

getBindings ( ) : array

Get the bindings for the query.