JS API Reference

Class: GolemModuleError

shared/error/golem-error.GolemModuleError

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

Parameters

NameType
messagestring
codestring | number
previous?Error

Returns

GolemModuleError

Overrides

GolemError.constructor

Defined in

src/shared/error/golem-error.ts:64

Properties

code

code: string | number

Defined in

src/shared/error/golem-error.ts:66


previous

Optional Readonly previous: Error

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

Inherited from

GolemError.previous

Defined in

src/shared/error/golem-error.ts:10