Variable ERROR_CODESConst

ERROR_CODES: {
    internal: "An unexpected internal error occured. Please get in touch with Ditto customer service to report this incident.";
    internal/unknown-error: "An unexpected internal error occured. Please get in touch with Ditto customer service to report this incident.";
    query/arguments-invalid: "The query arguments were invalid.";
    query/execution: "The query could not be executed.";
    query/invalid: "The query was invalid.";
    query/parameter: "The query to update system parameters failed.";
    query/unsupported: "The query contains unsupported features.";
    sdk/unsupported: "The feature is not supported by the current environment.";
    store/attachment-file-not-found: "The source file for the attachment does not exist.";
    store/attachment-file-permission-denied: "Permission has been denied for a file operation when working with attachments.";
    store/attachment-not-found: "The attachment could not be found.";
    store/attachment-token-invalid: "The attachment token is invalid.";
    store/backend: "An error occurred with the storage backend.";
    store/crdt: "An error occurred processing a CRDT.";
    store/document-not-found: "The document with the provided ID could not be found.";
    store/failed-to-create-attachment: "The attachment could not be created.";
    store/failed-to-fetch-attachment: "The attachment could not be fetched.";
}

Error code and default error message for all Ditto error messages.

Keys of this object define error codes with each value containing the accompanying error description that is set as the default error message for errors instantiated with this code.

Error codes may start with an error domain and a slash to group categories of errors together.

Type declaration

  • Readonly internal: "An unexpected internal error occured. Please get in touch with Ditto customer service to report this incident."

    Internal error for unexpected system states

  • Readonly internal/unknown-error: "An unexpected internal error occured. Please get in touch with Ditto customer service to report this incident."

    Internal error with an unknown error cause *

  • Readonly query/arguments-invalid: "The query arguments were invalid."

    Error for invalid DQL query arguments.

  • Readonly query/execution: "The query could not be executed."

    Errors that occur during execution of a query

  • Readonly query/invalid: "The query was invalid."

    Error for an invalid DQL query.

  • Readonly query/parameter: "The query to update system parameters failed."

    Error for a failed query updating system parameters

  • Readonly query/unsupported: "The query contains unsupported features."

    Error for a query that uses DQL features not supported in this version or not supported by the currently used API.

  • Readonly sdk/unsupported: "The feature is not supported by the current environment."

    Error when using a feature not supported by the current environment

  • Readonly store/attachment-file-not-found: "The source file for the attachment does not exist."

    The source file for an attachment does not exist.

  • Readonly store/attachment-file-permission-denied: "Permission has been denied for a file operation when working with attachments."

    Permission has been denied for a file operation when working with attachments.

  • Readonly store/attachment-not-found: "The attachment could not be found."

    Attachment could not be found.

  • Readonly store/attachment-token-invalid: "The attachment token is invalid."

    Attachment token is invalid.

  • Readonly store/backend: "An error occurred with the storage backend."

    Error in the storage backend.

  • Readonly store/crdt: "An error occurred processing a CRDT."

    Error for an invalid CRDT.

  • Readonly store/document-not-found: "The document with the provided ID could not be found."

    Error for a document not found.

  • Readonly store/failed-to-create-attachment: "The attachment could not be created."

    An unclassified error while creating an attachment.

  • Readonly store/failed-to-fetch-attachment: "The attachment could not be fetched."

    An unclassified error while fetching an attachment.