Interface: GalaErrorContext
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?
optionalapplyTransactionId?:string|null
Defined in: packages/gala-core-sdk/dist/index.d.ts:1105
The transaction id of the apply, null when unknown.
blockNumber?
optionalblockNumber?:number|null
Defined in: packages/gala-core-sdk/dist/index.d.ts:1107
The block the apply landed in, null when unknown.
body?
optionalbody?: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?
optionalcause?: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?
optionalphase?:"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?
optionalrequestTransactionId?:string|null
Defined in: packages/gala-core-sdk/dist/index.d.ts:1103
The transaction id of the queued request, null when unknown.
retryAfterMs?
optionalretryAfterMs?: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?
optionalshadow?: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?
optionalstatus?:number
Defined in: packages/gala-core-sdk/dist/index.d.ts:1092
The HTTP status of the response that caused the error.
uniqueKey?
optionaluniqueKey?: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?
optionalurl?:string
Defined in: packages/gala-core-sdk/dist/index.d.ts:1099
The URL the failing request went to.
walletCode?
optionalwalletCode?: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?
optionalwrite?: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.