ConstraintError class final
A write broke a rule of the data: a duplicate primary key, a unique index,
a missing key, an expectAffectedRows that did not hold, a key whose
deletion is not synchronized yet, or a sync operation naming a mutation
or conflict that does not match. Nothing was written by the failed
statement.
Properties
- code → DbErrorCode
-
The exact cause.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
A description for humans; it may change between versions, so code
reacts to code, never to the message.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- wireCode → String
-
The code as the engine sent it: the only trace of an
DbErrorCode.unknown code.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited