BloomEmptyExtractionException class
Thrown when attempting to extract payload (.data) from an Empty state or snapshot.
Actionable Resolution
- Inspect emptyReason to determine what prerequisite or guard gated this computation.
- DO NOT remove precondition guards; resolve the missing prerequisite upstream instead.
- In UI components, check
node.isEmptyandnode.emptyReasonto render pending states. - Use
.dataOrNullor.dataOrElse(() => fallback)to handle dormant states gracefully.
- Inheritance
-
- Object
- BloomException
- BloomSnapshotExtractionException
- BloomEmptyExtractionException
Constructors
- BloomEmptyExtractionException(String details, {Object? emptyReason})
-
Creates a BloomEmptyExtractionException with diagnostic context and causal reason.
const
Properties
- details → String
-
Diagnostic description of where and why extraction failed.
finalinherited
- emptyReason → Object?
-
Optional causal reason if the state was in an empty phase.
final
- error → Object?
-
The original upstream error object if state was in an error phase.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace → StackTrace?
-
The original stack trace if state was in an error phase.
no setterinherited
- state → String
-
The string descriptor of the invalid state (e.g. 'Empty', 'Error').
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited