Interface: GalaErrorCatalogEntry
GalaChain core SDK 1.0.0-rc.8 / index / GalaErrorCatalogEntry
Interface: GalaErrorCatalogEntry
Defined in: packages/gala-core-sdk/dist/index.d.ts:33
One catalog entry (of this catalog, or of a product SDK's own catalog).
Properties
params
readonlyparams:Readonly<Record<string,GalaErrorParamKind>>
Defined in: packages/gala-core-sdk/dist/index.d.ts:39
Param name to kind. Every param is required and appears in the template, except unrendered.
phase
readonlyphase:"pre_send"|"in_flight"|"post_send"
Defined in: packages/gala-core-sdk/dist/index.d.ts:35
The phase this code is thrown in, unless a throw site says otherwise (see GalaErrorPhase).
template
readonlytemplate:string
Defined in: packages/gala-core-sdk/dist/index.d.ts:37
English message template with {placeholder} markers.
unrendered?
readonlyoptionalunrendered?: readonlystring[]
Defined in: packages/gala-core-sdk/dist/index.d.ts:46
Params that are carried for the app but deliberately NOT placeholders of the template. Used
for serverMessage on the codes whose failing answer may be anything (a proxy's page, a
validation list): the server's text is data for the app to relay or ignore, and keeping it out
of message means it cannot reach a log line or a user interface by accident.