Skip to content

agent-plugin-error-handling / Exports / IErrorHandlingPluginOptions

Interface: IErrorHandlingPluginOptions

Configuration options for error handling plugin

Hierarchy

  • IPluginOptions

    IErrorHandlingPluginOptions

Table of contents

Properties

Properties

enabled

Optional enabled: boolean

Inherited from

IPluginOptions.enabled

Defined in

agent-core/dist/node/index.d.ts:971


category

Optional category: PluginCategory

Inherited from

IPluginOptions.category

Defined in

agent-core/dist/node/index.d.ts:972


priority

Optional priority: number

Inherited from

IPluginOptions.priority

Defined in

agent-core/dist/node/index.d.ts:973


moduleEvents

Optional moduleEvents: TEventName[]

Inherited from

IPluginOptions.moduleEvents

Defined in

agent-core/dist/node/index.d.ts:974


subscribeToAllModuleEvents

Optional subscribeToAllModuleEvents: boolean

Inherited from

IPluginOptions.subscribeToAllModuleEvents

Defined in

agent-core/dist/node/index.d.ts:975


strategy

strategy: TErrorHandlingStrategy

Error handling strategy to use

Defined in

agent-plugin-error-handling/src/types.ts:46


maxRetries

Optional maxRetries: number

Maximum number of retry attempts

Defined in

agent-plugin-error-handling/src/types.ts:48


retryDelay

Optional retryDelay: number

Initial delay between retries in milliseconds

Defined in

agent-plugin-error-handling/src/types.ts:50


logErrors

Optional logErrors: boolean

Whether to log errors

Defined in

agent-plugin-error-handling/src/types.ts:52


failureThreshold

Optional failureThreshold: number

Circuit breaker failure threshold

Defined in

agent-plugin-error-handling/src/types.ts:54


circuitBreakerTimeout

Optional circuitBreakerTimeout: number

Circuit breaker timeout in milliseconds

Defined in

agent-plugin-error-handling/src/types.ts:56


customErrorHandler

Optional customErrorHandler: (error: Error, context: IErrorHandlingContextData) => Promise<void>

Custom error handler function

Type declaration

▸ (error, context): Promise<void>

Parameters
NameType
errorError
contextIErrorHandlingContextData
Returns

Promise<void>

Defined in

agent-plugin-error-handling/src/types.ts:58

Released under the MIT License.