Skip to main content
@moss-js/moss / MossErrorCode

Type Alias: MossErrorCode

MossErrorCode = "INVALID_ARGUMENT" | "NOT_FOUND" | "UNAUTHORIZED" | "NETWORK" | "DESERIALIZATION" | "MODEL_UNAVAILABLE" | "INTERNAL"
Stable code on every error from the native core, and on the SDK errors that set a code. It is the 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+)