QueryException class
A query the database refused (Laravel's QueryException): the driver's
error (previous) with the connection and the SQL.
Unlike Laravel's, the message keeps the ? placeholders and only the
first line of the driver's error (SQLite's next lines repeat the SQL with
its parameters): the values, which may be password hashes or personal
data, are in bindings, away from logs and error trackers. The
database's own words may still name a conflicting value (MySQL's
Duplicate entry '...', PostgreSQL's detail), as in Laravel.
- Implemented types
- Implementers
Constructors
Properties
-
bindings
→ List<
Object?> -
final
- connectionName → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
no setter
- previous → Object
-
The driver's own error (
SqliteException,ServerException,MySQLServerException, ...).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sql → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited