Instant Error Code
Code used inside InstantException to indicate instant error source.
Entries
The operation failed, because it has been cancelled.
The process could not be completed because the authentication failed.
The operation cannot be performed at this time, because the document is busy authenticating.
A new sync request has not been initiated because there already was one running.
The request did not complete due to some networking problem. Most likely, the connection was interrupted.
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.
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.
The server rejected our request for a reason other than an authentication failure.
The operation could not be completed because the size of the payload sent to server is too large.
The data from the server has been ignored because it was invalid.
The loaded data could not be written to disk. This can happen simply because the disk is full.
Reading from the filesystem failed. This can happen if the filesystem structure of the disk cache has been modified unexpectedly.
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.
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.
The given string is not a valid Instant JWT. It is either malformed or missing mandatory claims.
The specified user Id is incompatible with the value stored on disk.
An attachment with the given ID does not exist in the disk cache.
There is no attachment with the specified ID.
Internal error code — if you ever see this reported, please file a bug.
Internal error code — if you ever see this reported, please file a bug.
Internal error code — if you ever see this reported, please file a bug.
The operation could not be completed because the given annotation is not managed by Instant.
The operation failed because a JSON structure was found to be invalid.
The operation failed because the custom data of an Instant comment was not valid JSON.
Functions
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.)
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.