ConstraintStatus class
Status detail for database integrity and constraint violations.
- Inheritance
-
- Object
- ResultStatus
- ConstraintStatus
Constructors
Properties
- code → int
-
Numeric status code
no setterinherited
- codeKey → String
-
Semantic state identifier key
no setterinherited
- conflictingKeys → List
-
The conflicting keys/values
final
- constraintName → String?
-
Optional constraint name
final
-
fields
→ List<
String> -
The list of fields involved in the constraint
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
Sequence index in batch operations (0 for single operation)
finalinherited
- isBusinessError → bool
-
Whether this status is a Business Error
no setterinherited
- isConstraintError → bool
-
Whether this maps to ConstraintStatus (same range as isBusinessError)
no setterinherited
- isCriticalError → bool
-
Whether this status is a critical system error requiring manual intervention
no setterinherited
- isDeveloperError → bool
-
Whether this status is a Developer Error
no setterinherited
- isEngineError → bool
-
Whether this status is an Engine Error
no setterinherited
- isSystemError → bool
-
Whether this status is a System Error
no setterinherited
- message → String
-
Human-readable description message
finalinherited
- primaryKey → String?
-
Optional primary key associated with this constraint violation
final
- referencedTable → String?
-
Optional referenced table name (specifically for foreign key constraints)
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tableName → String
-
The table where the constraint violation occurred
final
- type → ResultType
-
Leaf result status type
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Convert result status to a Map for serialization
override
-
toString(
) → String -
A string representation of this object.
inherited
-
withIndex(
int newIndex) → ConstraintStatus -
Returns a copy of this status with the specified batch sequence index.
If the current index is already equal to
newIndex, returnsthisdirectly.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited