UniqueConstraintViolationException
class UniqueConstraintViolationException extends QueryException (View source)
Properties
string | $connectionName | The database connection name. |
from QueryException |
protected string | $sql | The SQL for the query. |
from QueryException |
protected array | $bindings | The bindings for the query. |
from QueryException |
Methods
__construct(string $connectionName, string $sql, array $bindings, Throwable $previous)
Create a new query exception instance.
from
QueryException
string
formatMessage(string $connectionName, string $sql, array $bindings, Throwable $previous)
Format the SQL error message.
from
QueryException
string
getRawSql()
Get the raw SQL representation of the query with embedded bindings.
from
QueryException
Details
__construct(string $connectionName, string $sql, array $bindings, Throwable $previous)
Create a new query exception instance.
protected string
formatMessage(string $connectionName, string $sql, array $bindings, Throwable $previous)
Format the SQL error message.