JS API Reference

Class: GolemInternalError

error/golem-error.GolemInternalError

Represents errors when the SDK encountered an internal error that wasn't handled correctly.

Example

JSON.parse(undefined) -> Error: Unexpected token u in JSON at position 0

Hierarchy

Table of contents

Constructors

Properties

Constructors

constructor

new GolemInternalError(message, previous?): GolemInternalError

Parameters

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

Returns

GolemInternalError

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