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
- ↳ - GolemWorkError
Table of contents
Constructors
Properties
Methods
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
src/activity/exe-unit/error.ts:21
Properties
code
• code: WorkErrorCode
Inherited from
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
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