ContentItemFailure class final
Failure when a ContentItem type registration is missing.
This occurs when JSON from the CMS contains a schema type that has no registered TypeDescriptor in the content system.
Example:
ContentItemFailure(
schemaType: 'blog.post',
jsonPayload: {'_type': 'blog.post', 'title': 'My Post'},
description: 'No TypeDescriptor registered for blog.post',
)
- Inheritance
-
- Object
- ContentFailure
- ContentItemFailure
Constructors
Properties
- description → String?
-
Human-readable description of the failure
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
jsonPayload
→ Map<
String, dynamic> ? -
The original JSON payload that caused the failure (if available)
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- schemaType → String
-
The schema type that failed to resolve
finalinherited
-
suggestions
→ List<
String> ? -
Optional suggestions for resolving the failure
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