This site describes solve-engine 2.44.0, the version npm installs.
isCataloguedErrorCode
function isCataloguedErrorCode(code): boolean;Defined in: packages/engine/src/packages/ErrorCodeCatalogue.ts:156
Whether the engine or a built-in package can answer with code: it is in
one of the catalogues, or it matches a run-time pattern such as
<NAMESPACE>_QUERY_FAILED.
A host uses it to tell a code it should expect to handle from one a third-party package minted, or from a typo in its own branching.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
code | string | The code, as read from EngineError.code or Value.errorCode. |
Returns
Section titled “Returns”boolean
True for a catalogued code or one matching a pattern.