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/unsupported: "The query contains unsupported features.";
    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.";
}

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/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 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.