Skip to main content

ErrorHandlingResult

Upgather SDK


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?

optional delay: number

Defined in: lib/error/ErrorHandlingStrategy.ts:10

Delay in milliseconds before retrying (when action is 'retry')


error?

optional error: Error

Defined in: lib/error/ErrorHandlingStrategy.ts:12

Enhanced error to throw (when action is 'abort')