Readonlycode
code:
| "internal"
| "internal/unknown-error"
| "sdk/unsupported"
| "authentication/failed-to-authenticate"
| "io/already-exists"
| "io/not-found"
| "io/permission-denied"
| "io/operation-failed"
| "query/arguments-invalid"
| "query/execution"
| "query/invalid"
| "query/unsupported"
| "query/parameter"
| "store/backend"
| "store/crdt"
| "store/document-not-found"
| "store/attachment-file-permission-denied"
| "store/attachment-file-not-found"
| "store/attachment-not-found"
| "store/attachment-token-invalid"
| "store/failed-to-create-attachment"
| "store/failed-to-fetch-attachment"
| "activation/license-token-verification-failed"
| "activation/license-token-expired"
| "activation/license-token-unsupported-future-version"
| "activation/not-activated"
| "validation/depth-limit-exceeded"
| "validation/invalid-cbor"
| "validation/invalid-json"
| "validation/not-an-object"
| "validation/not-json-compatible"
| "validation/size-limit-exceeded"
DittoErroris a subclass of the default JavascriptError. You can identify specific errors programatically using the code property.Please reference ERROR_CODES for a comprehensive list of possible error codes in this SDK version.
Example
Handling a specific error code: