JS API Reference

Class: GolemUserError

error/golem-error.GolemUserError

User-caused errors in the Golem SDK containing logic errors.

Example

you cannot create an activity for an agreement that already expired

Hierarchy

Table of contents

Constructors

Properties

Constructors

constructor

new GolemUserError(message, previous?): GolemUserError

Parameters

NameTypeDescription
messagestring-
previous?ErrorThe previous error, if any, that led to this error.

Returns

GolemUserError

Inherited from

GolemError.constructor

Defined in

src/error/golem-error.ts:5

Properties

previous

Optional Readonly previous: Error

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

Inherited from

GolemError.previous

Defined in

src/error/golem-error.ts:10