CascadeError class

Detailed error information for cascade operations.

Constructors

CascadeError({required String code, required String message, Map<String, dynamic>? details, String? entityType, String? entityId, String? relationName})
const

Properties

code String
final
details Map<String, dynamic>?
final
entityId String?
final
entityType String?
final
hashCode int
The hash code for this object.
no setterinherited
message String
final
relationName String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

cancelled() CascadeError
deleteFailed(String entityType, String entityId, String reason) CascadeError
entityNotFound(String entityId) CascadeError
restrictViolation(String relationName, List<String> entityIds) CascadeError
timeout(Duration timeout) CascadeError