Class

CloudKit.CKError

A CloudKit.CKError object encapsulates an error that may occur when you use CloudKit JS. This includes CloudKit server errors and local errors.

Declaration

interface CloudKit.CKError

Topics

Handling Errors

isError

A Boolean value indicating whether this is an error object.

isCKError

A Boolean value indicating whether this is a CloudKit error object.

ckErrorCode

The error code for this error.

isServerError

A Boolean value indicating whether a server error occurred.

serverErrorCode

The error code generated by the server.

reason

A description of the error that occurred.

retryAfter

The suggested time to wait before trying this operation again.

uuid

A unique identifier for this error.

redirectURL

A redirect URL for the user to securely sign in with the user’s Apple ID.

Identifying the Operation

recordName

The name of the record that the operation failed on.

subscriptionID

A string that is a unique identifier for the subscription where the error occurred.

zoneID

The record zone in the database where the error occurred.

Constants

Errors

The errors that may occur when posting requests.

Miscellaneous