JS API Reference

Class: GolemWorkError

task/error.GolemWorkError

Module specific errors - Market, Work, Payment. Each of the major modules will have its own domain specific root error type, additionally containing an error code specific to a given subdomain

Hierarchy

Table of contents

Constructors

Properties

Constructors

constructor

new GolemWorkError(message, code, agreement?, activity?, provider?, previous?): GolemWorkError

Parameters

NameType
messagestring
codeWorkErrorCode
agreement?Agreement
activity?Activity
provider?ProviderInfo
previous?Error

Returns

GolemWorkError

Overrides

GolemModuleError.constructor

Defined in

src/task/error.ts:20

Properties

code

code: WorkErrorCode

Inherited from

GolemModuleError.code

Defined in

src/task/error.ts:22


agreement

Optional agreement: Agreement

Defined in

src/task/error.ts:23


activity

Optional activity: Activity

Defined in

src/task/error.ts:24


provider

Optional provider: ProviderInfo

Defined in

src/task/error.ts:25


previous

Optional previous: Error

The previous error, if any, that led to this error.

Inherited from

GolemModuleError.previous

Defined in

src/task/error.ts:26