class GeneratedColumnValueException extends DatabaseException (View source)

Exception for errors related to setting values on a generated column

Properties

protected string $sql

The SQL that generated this error

from  DatabaseException
protected array $parameters

The parameters given for this query, if any

from  DatabaseException

Methods

public
string
getSQL()

Returns the SQL that generated this error

public
array
getParameters()

The parameters given for this query, if any

public
__construct(string $message = '', string|null $column = null, string|null $table = null, string $sql = null, array $parameters = [])

Constructs the database exception

public
string|null
getColumn()

Get the name of the column which the error is for

public
string|null
getTable()

Get the name of the table which the error is for

Details

string getSQL()

Returns the SQL that generated this error

Return Value

string

array getParameters()

The parameters given for this query, if any

Return Value

array

__construct(string $message = '', string|null $column = null, string|null $table = null, string $sql = null, array $parameters = [])

Constructs the database exception

Parameters

string $message

The Exception message to throw.

string|null $column

The name of the column which the error is for

string|null $table

The name of the table which the error is for

string $sql

The SQL executed for this query

array $parameters

The parameters given for this query, if any

string|null getColumn()

Get the name of the column which the error is for

Return Value

string|null

string|null getTable()

Get the name of the table which the error is for

Return Value

string|null