JS API Reference

Class: GolemMarketError

market/error.GolemMarketError

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 GolemMarketError(message, code, demand?, previous?): GolemMarketError

Parameters

NameType
messagestring
codeMarketErrorCode
demand?Demand
previous?Error

Returns

GolemMarketError

Overrides

GolemModuleError.constructor

Defined in

src/market/error.ts:18

Properties

code

code: MarketErrorCode

Inherited from

GolemModuleError.code

Defined in

src/market/error.ts:20


demand

Optional demand: Demand

Defined in

src/market/error.ts:21


previous

Optional previous: Error

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

Inherited from

GolemModuleError.previous

Defined in

src/market/error.ts:22

Was this helpful?