JS API Reference
Class: GolemWorkError
task/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
↳
GolemWorkError
Table of contents
Constructors
Properties
Constructors
constructor
• new GolemWorkError(message
, code
, agreement?
, activity?
, provider?
, previous?
): GolemWorkError
Parameters
Name | Type |
---|---|
message | string |
code | WorkErrorCode |
agreement? | Agreement |
activity? | Activity |
provider? | ProviderInfo |
previous? | Error |
Returns
Overrides
Defined in
Properties
code
• code: WorkErrorCode
Inherited from
Defined in
agreement
• Optional
agreement: Agreement
Defined in
activity
• Optional
activity: Activity
Defined in
provider
• Optional
provider: ProviderInfo
Defined in
previous
• Optional
previous: Error
The previous error, if any, that led to this error.