ErrorBoundary<T> class

An error boundary that isolates operations and provides configurable error recovery.

Error boundaries prevent cascading failures by containing errors within specific operation scopes and providing fallback behaviors or recovery strategies.

Constructors

ErrorBoundary({ErrorBoundaryConfig? config, DatumLogger? logger})

Properties

config ErrorBoundaryConfig
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

execute(Future<T> operation()) Future<T>
Executes an operation within the error boundary.
executeVoid(Future<void> operation()) Future<void>
Executes a void operation within the error boundary.
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