DriftWrappedException class
A wrapper class for internal exceptions thrown by the underlying database engine when drift can give additional context or help.
For instance, when we know that an invalid statement has been constructed, we catch the database exception and try to explain why that has happened.
- Implemented types
Constructors
- DriftWrappedException({required String message, Object? cause, StackTrace? trace})
- Creates a new DriftWrappedException to provide additional details about an underlying error from the database.
Properties
- cause → Object?
-
The underlying exception caught by drift
final
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- message → String
-
Contains a possible description of why the underlying cause occurred,
for instance because a drift api was misused.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- trace → StackTrace?
-
The original stacktrace when caught by drift
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