This site describes solve-engine as it is on main: 2.43.0, which npm does not have yet. npm installs 2.40.0, so a page may show an answer that version does not give yet.
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.