InstantErrorCode

Code used inside InstantException to indicate instant error source.

Entries

Link copied to clipboard

We don’t really know what happened.

Link copied to clipboard

The operation failed, because it has been cancelled.

Link copied to clipboard

The process could not be completed because the authentication failed.

Link copied to clipboard

The operation cannot be performed at this time, because the document is busy authenticating.

Link copied to clipboard

A new sync request has not been initiated because there already was one running.

Link copied to clipboard

The request did not complete due to some networking problem. Most likely, the connection was interrupted.

Link copied to clipboard

The operation could not be completed because the client and server have incompatible versions: the server expects a newer client. You need to update this framework in your app to a compatible version and release an update. If a user sees this on their device they need to update your app.

Link copied to clipboard

The operation could not be completed because the client and server have incompatible versions: the client is too new for the server. The server needs to be updated to a compatible version. You should update your server before releasing the updated client to ensure this error is never encountered on users’ devices.

Link copied to clipboard

The server rejected our request for a reason other than an authentication failure.

Link copied to clipboard

The operation could not be completed because the size of the payload sent to server is too large.

Link copied to clipboard

The data from the server has been ignored because it was invalid.

Link copied to clipboard

The loaded data could not be written to disk. This can happen simply because the disk is full.

Link copied to clipboard

Reading from the filesystem failed. This can happen if the filesystem structure of the disk cache has been modified unexpectedly.

Link copied to clipboard

The data could not be written to the instant database. Any other interactions with the database are likely to fail, too. If the problem persists across restarts of the app, remove this document’s local storage, and start anew.

Link copied to clipboard

The server cache could not be looked up because the server’s UUID is yet to be determined. This happens for every InstantClient in a newly installed app until it has authenticated for loading the first document.

Link copied to clipboard

The given string is not a valid Instant JWT. It is either malformed or missing mandatory claims.

Link copied to clipboard

The specified user Id is incompatible with the value stored on disk.

Link copied to clipboard

An attachment with the given ID does not exist in the disk cache.

Link copied to clipboard

There is no attachment with the specified ID.

Link copied to clipboard

Internal error code — if you ever see this reported, please file a bug.

Link copied to clipboard

Internal error code — if you ever see this reported, please file a bug.

Link copied to clipboard

Internal error code — if you ever see this reported, please file a bug.

Link copied to clipboard

The operation could not be completed because the given annotation is not managed by Instant.

Link copied to clipboard

The operation failed because a JSON structure was found to be invalid.

Link copied to clipboard

The operation failed because the custom data of an Instant comment was not valid JSON.

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.