Payload class
The canonical error-response payload per SPEC.md §8.2.
Constructors
Properties
- code → String
-
Short identifier for the failure category. MUST be either a framework standard code
(SPEC.md §8.3) or an extended code namespaced by the originating spec's slug
(SPEC.md §8.5, e.g. 'acl/grant:roleNotRecognized').
final
-
details
→ Map<
String, dynamic> ? -
Optional task-specific extension data. Per-spec error code declarations may pin the
shape via a JSON Schema fragment.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String?
-
Human-readable description of the error. Non-normative; intended for logs and
operator UI.
final
- retryable → bool
-
true if the producer of the original document MAY retry; false if retrying with the
same document is not expected to succeed.
final
- retryAfter → String?
-
RFC 3339 timestamp before which the producer SHOULD NOT retry. Meaningful only when
retryable is true.
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
-
toJson(
) → Map< String, dynamic> - Serialize to a JSON-encodable map, omitting absent members.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited