Skip to main content

Interface: GalaErrorContext

GalaChain core SDK 1.0.0-rc.8


GalaChain core SDK 1.0.0-rc.8 / index / GalaErrorContext

Interface: GalaErrorContext

Defined in: packages/gala-core-sdk/dist/index.d.ts:1090

The facts of an error that are not placeholders of its message: where it happened and what the server said. All optional; none is localized text.

Properties​

applyTransactionId?​

optional applyTransactionId?: string | null

Defined in: packages/gala-core-sdk/dist/index.d.ts:1105

The transaction id of the apply, null when unknown.


blockNumber?​

optional blockNumber?: number | null

Defined in: packages/gala-core-sdk/dist/index.d.ts:1107

The block the apply landed in, null when unknown.


body?​

optional body?: unknown

Defined in: packages/gala-core-sdk/dist/index.d.ts:1097

The response body: parsed JSON when the failing response had it, else the raw text (which the error then exposes as GalaSDKError.bodyText).


cause?​

optional cause?: unknown

Defined in: packages/gala-core-sdk/dist/index.d.ts:1111

The error that caused this one (a transport failure, a wallet rejection).


phase?​

optional phase?: "pre_send" | "in_flight" | "post_send"

Defined in: packages/gala-core-sdk/dist/index.d.ts:1117

The phase of THIS occurrence when it differs from the code's catalog phase (see GalaErrorPhase): for example a product code that is pre_send from a local registry but post_send when it is derived from a server answer.


requestTransactionId?​

optional requestTransactionId?: string | null

Defined in: packages/gala-core-sdk/dist/index.d.ts:1103

The transaction id of the queued request, null when unknown.


retryAfterMs?​

optional retryAfterMs?: number

Defined in: packages/gala-core-sdk/dist/index.d.ts:1109

How long to wait before retrying, from the server's Retry-After.


shadow?​

optional shadow?: boolean

Defined in: packages/gala-core-sdk/dist/index.d.ts:1119

True when the failing operation was on the shadow (dark) path; see GalaSDKError.shadow.


status?​

optional status?: number

Defined in: packages/gala-core-sdk/dist/index.d.ts:1092

The HTTP status of the response that caused the error.


uniqueKey?​

optional uniqueKey?: string

Defined in: packages/gala-core-sdk/dist/index.d.ts:1101

The uniqueKey of the write this error is about: the handle for confirm() and recovery.


url?​

optional url?: string

Defined in: packages/gala-core-sdk/dist/index.d.ts:1099

The URL the failing request went to.


walletCode?​

optional walletCode?: string | number

Defined in: packages/gala-core-sdk/dist/index.d.ts:1126

The wallet's own code on the error a signer threw; see GalaSDKError.walletCode.


write?​

optional write?: boolean

Defined in: packages/gala-core-sdk/dist/index.d.ts:1124

false for the failure of a READ (see GalaSDKError.write); anything else, including absent, is a write (fail-closed). Ignored when uniqueKey is set: that is a write.