ErrorHandlingResult
Upgather SDK / ErrorHandlingResult
Interface: ErrorHandlingResult
Defined in: lib/error/ErrorHandlingStrategy.ts:6
Result of error handling operation, indicating the next action to take.
Properties
action
action:
"retry"|"abort"
Defined in: lib/error/ErrorHandlingStrategy.ts:8
The action to take after handling the error
delay?
optionaldelay:number
Defined in: lib/error/ErrorHandlingStrategy.ts:10
Delay in milliseconds before retrying (when action is 'retry')
error?
optionalerror:Error
Defined in: lib/error/ErrorHandlingStrategy.ts:12
Enhanced error to throw (when action is 'abort')