MssqlUniqueConflictException class
Raised when getOrCreate finds a soft-deleted row, or a unique collision that is not the key it asked about.
The default is to stop: restoring a deleted row because the same key was
typed is a data decision, not an insert convenience. Pass restoreExisting
or includeDeleted to choose.
- Inheritance
-
- Object
- MssqlOrmException
- MssqlUniqueConflictException
Constructors
- MssqlUniqueConflictException({required String table, required String indexName, required String reason})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- indexName → String
-
final
- message → String
-
A sentence naming what happened and, where there is one, what to do.
no setteroverride
- reason → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- table → 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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited