JS API Reference

Class: GolemPaymentError

payment/error.GolemPaymentError

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

Methods

Constructors

constructor

new GolemPaymentError(message, code, allocation?, provider?, previous?): GolemPaymentError

Parameters

NameType
messagestring
codePaymentErrorCode
allocation?Allocation
provider?ProviderInfo
previous?Error

Returns

GolemPaymentError

Overrides

GolemModuleError.constructor

Defined in

src/payment/error.ts:23

Properties

code

code: PaymentErrorCode

Inherited from

GolemModuleError.code

Defined in

src/payment/error.ts:25


previous

Optional previous: Error

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

Inherited from

GolemModuleError.previous

Defined in

src/payment/error.ts:28

Methods

getAllocation

getAllocation(): undefined | Allocation

Returns

undefined | Allocation

Defined in

src/payment/error.ts:34


getProvider

getProvider(): undefined | ProviderInfo

Returns

undefined | ProviderInfo

Defined in

src/payment/error.ts:37

Was this helpful?