class Illuminate / Database / QueryException
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

QueryException

Extends

Properties

public

$connectionName string

The database connection name.

Default: null
protected

$sql string

The SQL for the query.

Default: null
protected

$bindings array

The bindings for the query.

Default: null

Methods

public

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

Create a new query exception instance.

Parameters

  • $connectionName string
  • $sql string
  • $bindings array
  • $previous Throwable
protected

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

Format the SQL error message.

Parameters

  • $connectionName string
  • $sql string
  • $bindings array
  • $previous Throwable
public

getConnectionName ( ) : string

Get the connection name for the query.

public

getSql ( ) : string

Get the SQL for the query.

public

getBindings ( ) : array

Get the bindings for the query.