index/interfaces/GalaErrorContext.md
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
| Property | Type | Description |
|---|---|---|
applyTransactionId? | string | null | The transaction id of the apply, null when unknown. |
blockNumber? | number | null | The block the apply landed in, null when unknown. |
body? | unknown | The response body: parsed JSON when the failing response had it, else the raw text (which the error then exposes as GalaSDKError.bodyText). |
cause? | unknown | The error that caused this one (a transport failure, a wallet rejection). |
phase? | "pre_send" | "in_flight" | "post_send" | 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? | string | null | The transaction id of the queued request, null when unknown. |
retryAfterMs? | number | How long to wait before retrying, from the server's Retry-After. |
shadow? | boolean | True when the failing operation was on the shadow (dark) path; see GalaSDKError.shadow. |
status? | number | The HTTP status of the response that caused the error. |
uniqueKey? | string | The uniqueKey of the write this error is about: the handle for confirm() and recovery. |
url? | string | The URL the failing request went to. |
walletCode? | string | number | The wallet's own code on the error a signer threw; see GalaSDKError.walletCode. |
write? | boolean | 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. |
apply transaction id block number pre send in flight post request retry after ms unique key wallet code