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

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:19

Properties

code

code: PaymentErrorCode

Inherited from

GolemModuleError.code

Defined in

src/payment/error.ts:21


allocation

Optional allocation: Allocation

Defined in

src/payment/error.ts:22


provider

Optional provider: ProviderInfo

Defined in

src/payment/error.ts:23


previous

Optional previous: Error

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

Inherited from

GolemModuleError.previous

Defined in

src/payment/error.ts:24

Was this helpful?