diagnosticOf
diagnosticOf(
error):Diagnostic|undefined
Defined in: libs/runtime/src/diagnostics.ts:224
The diagnostic attached to an error the engine threw, or undefined for any other error. Branch on its code, not on
the message.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”Diagnostic | undefined
TypeDBLite is an independent open-source project, built on TypeDB with thanks. It is not affiliated with, sponsored by, or endorsed by TypeDB Ltd. Released under the MPL-2.0 license.