class Illuminate / Database / QueryException

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.