• ------------------------------
  • JS API Reference

    Class: GolemWorkError

    activity/exe-unit/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

    Methods

    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/activity/exe-unit/error.ts:21

    Properties

    code

    code: WorkErrorCode

    Inherited from

    GolemModuleError.code

    Defined in

    src/activity/exe-unit/error.ts:23


    previous

    Optional previous: Error

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

    Inherited from

    GolemModuleError.previous

    Defined in

    src/activity/exe-unit/error.ts:27

    Methods

    getAgreement

    getAgreement(): undefined | Agreement

    Returns

    undefined | Agreement

    Defined in

    src/activity/exe-unit/error.ts:34


    getActivity

    getActivity(): undefined | Activity

    Returns

    undefined | Activity

    Defined in

    src/activity/exe-unit/error.ts:37


    getProvider

    getProvider(): undefined | ProviderInfo

    Returns

    undefined | ProviderInfo

    Defined in

    src/activity/exe-unit/error.ts:40