ErrorRecoveryManager class

Manages error recovery for the Locus SDK.

Constructors

ErrorRecoveryManager([ErrorRecoveryConfig? config])
Creates an error recovery manager.

Properties

errors Stream<LocusError>
Stream of errors for external observation.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

configure(ErrorRecoveryConfig config) → void
Updates the configuration.
dispose() → void
Disposes resources.
getRetryDelay(LocusErrorType errorType) Duration
Calculates delay for next retry attempt.
handleError(LocusError error, {bool isTrackingActive = false, int? batteryLevel, bool? isCharging, bool? networkAvailable}) Future<RecoveryAction>
Handles an error and determines recovery action.
markResolved(LocusErrorType errorType) → void
Marks an error as resolved (e.g., after successful retry).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
Clears all error state.
scheduleRetry(LocusErrorType errorType, void retryAction()) → void
Schedules a retry with appropriate delay.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited