Interface: MossError
AnError with a stable code, from the native core or the SDK. A core failure carries
fixed text for each kind of failure, such as Index not found., and detail holds the core
error text. A MossError the SDK raises itself describes its cause and has no detail.
Not every SDK error is a MossError: a closed client or session, createIndex with no
documents and the custom-embedding checks throw a plain Error with no code.
(@moss-js/moss 1.16.0+)
MossError is a type, not a class. Narrow a caught value with
isMossError rather than instanceof.
Extends
Error
Properties
See Error codes.