Skip to content

@gala-chain/connectAPI


API > GalaChainResponseError

Class: GalaChainResponseError<T>

Represents an error response from a GalaChain operation.

Contents

Type parameters

T

The type of data associated with the error

Constructors

new GalaChainResponseError(data)

new GalaChainResponseError\<T>(data): GalaChainResponseError\<T>

Creates a new error response.

Parameters

data: GalaChainError\<T>

The error data to construct the response from

Source

chain-connect/src/types/galaChain.ts:70

Properties

Error

readonly Error: string

The error key or identifier

Source

chain-connect/src/types/galaChain.ts:60


ErrorCode

readonly ErrorCode: number

Numeric error code

Source

chain-connect/src/types/galaChain.ts:64


Message

readonly Message: string

Human-readable error message

Source

chain-connect/src/types/galaChain.ts:62