Type Alias: MossErrorCode
MossErrorCode =Stable code on every error from the native core, and on the SDK errors that set a code. It is the"INVALID_ARGUMENT"|"NOT_FOUND"|"UNAUTHORIZED"|"NETWORK"|"DESERIALIZATION"|"MODEL_UNAVAILABLE"|"INTERNAL"
code of a MossError and the value type of
LoadIndexesResult.failedCodes. Other SDK errors, such as
MossClient is closed or createIndex requires at least one document, are plain Errors
with no code. (@moss-js/moss 1.16.0+)