enum (unnamed at /Users/couchbase/jenkins/workspace/couchbase-lite-ios-objc-edition-build/artifacts/objc_xc_enterprise/CouchbaseLite.xcframework/macos-arm64_x86_64/CouchbaseLite.framework/Versions/A/Headers/CBLErrors.h:25:1)
NS_ERROR_ENUM(CBLErrorDomain) {
/** Internal assertion failure */
CBLErrorAssertionFailed = 1,
/** Oops, an unimplemented API call */
CBLErrorUnimplemented,
/** Unsupported encryption algorithm */
CBLErrorUnsupportedEncryption,
/** Invalid revision ID syntax */
CBLErrorBadRevisionID,
/** Document contains corrupted/unreadable data*/
CBLErrorCorruptRevisionData,
/** Database/KeyStore/index is not open */
CBLErrorNotOpen,
/** Document not found */
CBLErrorNotFound,
/** Document update conflict */
CBLErrorConflict,
/** Invalid function parameter or struct value*/
CBLErrorInvalidParameter,
/** Internal unexpected C++ exception */
CBLErrorUnexpectedError = 10,
/** Database file can't be opened; may not exist */
CBLErrorCantOpenFile,
/** File I/O error */
CBLErrorIOError,
/** Memory allocation failed (out of memory?) */
CBLErrorMemoryError,
/** File is not writeable */
CBLErrorNotWriteable,
/** Data is corrupted */
CBLErrorCorruptData,
/** Database is busy/locked */
CBLErrorBusy,
/** Function must be called while in a transaction */
CBLErrorNotInTransaction,
/** Database can't be closed while a transaction is open */
CBLErrorTransactionNotClosed,
/** Operation not supported in this database */
CBLErrorUnsupported,
/** File is not a database, or encryption key is wrong */
CBLErrorUnreadableDatabase = 20,
/** Database exists but not in the format/storage requested */
CBLErrorWrongFormat,
/** Encryption/decryption error */
CBLErrorCrypto,
/** Invalid query */
CBLErrorInvalidQuery,
/** No such index, or query requires a nonexistent index */
CBLErrorMissingIndex,
/** Unknown query param name, or param number out of range */
CBLErrorInvalidQueryParam,
/** Unknown error from remote server */
CBLErrorRemoteError,
/** Database file format is older than what I can open */
CBLErrorDatabaseTooOld,
/** Database file format is newer than what I can open */
CBLErrorDatabaseTooNew,
/** Invalid document ID */
CBLErrorBadDocID,
/** Database can't be upgraded (might be unsupported dev version) */
CBLErrorCantUpgradeDatabase = 30,
// Note: These are equivalent to the C4Error codes declared in LiteCore's c4Base.h
#pragma mark -- Network error codes start here
/** Network error codes start here */
CBLErrorNetworkBase = 5000,
/** DNS lookup failed */
CBLErrorDNSFailure = 5001,
/** DNS server doesn't know the hostname */
CBLErrorUnknownHost = 5002,
/** Socket timeout during an operation */
CBLErrorTimeout = 5003,
/** The provided url is not valid */
CBLErrorInvalidURL = 5004,
/** Too many HTTP redirects for the HTTP client to handle */
CBLErrorTooManyRedirects = 5005,
/** Failure during TLS handshake process */
CBLErrorTLSHandshakeFailed = 5006,
/** The provided TLS certificate has expired */
CBLErrorTLSCertExpired = 5007,
/** Cert isn't trusted for other reason */
CBLErrorTLSCertUntrusted = 5008,
/** A required client certificate was not provided */
CBLErrorTLSClientCertRequired = 5009,
/** Client certificate was rejected by the server */
CBLErrorTLSClientCertRejected = 5010,
/** Self-signed cert, or unknown anchor cert */
CBLErrorTLSCertUnknownRoot = 5011,
/** Attempted redirect to invalid replication endpoint by server */
CBLErrorInvalidRedirect = 5012,
/** The specified network interface is not valid or unknown. */
CBLErrorUnknownInterface = 5027,
#pragma mark -- HTTP status codes start here
/** HTTP status codes start here*/
CBLErrorHTTPBase = 10000,
/** Missing or incorrect user authentication */
CBLErrorHTTPAuthRequired = 10401,
/** User doesn't have permission to access resource */
CBLErrorHTTPForbidden = 10403,
/** Resource not found */
CBLErrorHTTPNotFound = 10404,
/** Update conflict */
CBLErrorHTTPConflict = 10409,
/** HTTP proxy requires authentication */
CBLErrorHTTPProxyAuthRequired = 10407,
/** Data is too large to upload */
CBLErrorHTTPEntityTooLarge = 10413,
/** HTCPCP/1.0 error (RFC 2324) */
CBLErrorHTTPImATeapot = 10418,
/** Something's wrong with the server */
CBLErrorHTTPInternalServerError = 10500,
/** Unimplemented server functionality */
CBLErrorHTTPNotImplemented = 10501,
/** Service is down temporarily(?) */
CBLErrorHTTPServiceUnavailable = 10503,
#pragma mark -- WebSocket status codes start here
/** WebSocket status codes start here */
CBLErrorWebSocketBase = 11000,
/** Peer has to close, e.g. because host app is quitting */
CBLErrorWebSocketGoingAway = 11001,
/** Protocol violation: invalid framing data */
CBLErrorWebSocketProtocolError = 11002,
/** Message payload cannot be handled */
CBLErrorWebSocketDataError = 11003,
/** TCP socket closed unexpectedly */
CBLErrorWebSocketAbnormalClose = 11006,
/** Unparseable WebSocket message */
CBLErrorWebSocketBadMessageFormat = 11007,
/** Message violated unspecified policy */
CBLErrorWebSocketPolicyError = 11008,
/** Message is too large for peer to handle */
CBLErrorWebSocketMessageTooBig = 11009,
/** Peer doesn't provide a necessary extension */
CBLErrorWebSocketMissingExtension = 11010,
/** Can't fulfill request due to "unexpected condition" */
CBLErrorWebSocketCantFulfill = 11011,
#ifdef COUCHBASE_ENTERPRISE
/** Recoverable messaging error */
CBLErrorWebSocketCloseUserTransient = 14001,
/** Non-recoverable messaging error */
CBLErrorWebSocketCloseUserPermanent = 14002,
#endif
/** Invalid JSON string error */
CBLErrorInvalidJSON = 17001,
}
Undocumented
-
Internal assertion failure
Declaration
Objective-C
CBLErrorAssertionFailed = 1
-
Oops, an unimplemented API call
Declaration
Objective-C
CBLErrorUnimplemented
-
Unsupported encryption algorithm
Declaration
Objective-C
CBLErrorUnsupportedEncryption
-
Invalid revision ID syntax
Declaration
Objective-C
CBLErrorBadRevisionID
-
Document contains corrupted/unreadable data
Declaration
Objective-C
CBLErrorCorruptRevisionData
-
Database/KeyStore/index is not open
Declaration
Objective-C
CBLErrorNotOpen
-
Document not found
Declaration
Objective-C
CBLErrorNotFound
-
Document update conflict
Declaration
Objective-C
CBLErrorConflict
-
Invalid function parameter or struct value
Declaration
Objective-C
CBLErrorInvalidParameter
-
Internal unexpected C++ exception
Declaration
Objective-C
CBLErrorUnexpectedError = 10
-
Database file can’t be opened; may not exist
Declaration
Objective-C
CBLErrorCantOpenFile
-
File I/O error
Declaration
Objective-C
CBLErrorIOError
-
Memory allocation failed (out of memory?)
Declaration
Objective-C
CBLErrorMemoryError
-
File is not writeable
Declaration
Objective-C
CBLErrorNotWriteable
-
Data is corrupted
Declaration
Objective-C
CBLErrorCorruptData
-
Database is busy/locked
Declaration
Objective-C
CBLErrorBusy
-
Function must be called while in a transaction
Declaration
Objective-C
CBLErrorNotInTransaction
-
Database can’t be closed while a transaction is open
Declaration
Objective-C
CBLErrorTransactionNotClosed
-
Operation not supported in this database
Declaration
Objective-C
CBLErrorUnsupported
-
File is not a database, or encryption key is wrong
Declaration
Objective-C
CBLErrorUnreadableDatabase = 20
-
Database exists but not in the format/storage requested
Declaration
Objective-C
CBLErrorWrongFormat
-
Encryption/decryption error
Declaration
Objective-C
CBLErrorCrypto
-
Invalid query
Declaration
Objective-C
CBLErrorInvalidQuery
-
No such index, or query requires a nonexistent index
Declaration
Objective-C
CBLErrorMissingIndex
-
Unknown query param name, or param number out of range
Declaration
Objective-C
CBLErrorInvalidQueryParam
-
Unknown error from remote server
Declaration
Objective-C
CBLErrorRemoteError
-
Database file format is older than what I can open
Declaration
Objective-C
CBLErrorDatabaseTooOld
-
Database file format is newer than what I can open
Declaration
Objective-C
CBLErrorDatabaseTooNew
-
Invalid document ID
Declaration
Objective-C
CBLErrorBadDocID
-
Database can’t be upgraded (might be unsupported dev version)
Declaration
Objective-C
CBLErrorCantUpgradeDatabase = 30
-
Network error codes start here
Declaration
Objective-C
CBLErrorNetworkBase = 5000
-
DNS lookup failed
Declaration
Objective-C
CBLErrorDNSFailure = 5001
-
DNS server doesn’t know the hostname
Declaration
Objective-C
CBLErrorUnknownHost = 5002
-
Socket timeout during an operation
Declaration
Objective-C
CBLErrorTimeout = 5003
-
The provided url is not valid
Declaration
Objective-C
CBLErrorInvalidURL = 5004
-
Too many HTTP redirects for the HTTP client to handle
Declaration
Objective-C
CBLErrorTooManyRedirects = 5005
-
Failure during TLS handshake process
Declaration
Objective-C
CBLErrorTLSHandshakeFailed = 5006
-
The provided TLS certificate has expired
Declaration
Objective-C
CBLErrorTLSCertExpired = 5007
-
Cert isn’t trusted for other reason
Declaration
Objective-C
CBLErrorTLSCertUntrusted = 5008
-
A required client certificate was not provided
Declaration
Objective-C
CBLErrorTLSClientCertRequired = 5009
-
Client certificate was rejected by the server
Declaration
Objective-C
CBLErrorTLSClientCertRejected = 5010
-
Self-signed cert, or unknown anchor cert
Declaration
Objective-C
CBLErrorTLSCertUnknownRoot = 5011
-
Attempted redirect to invalid replication endpoint by server
Declaration
Objective-C
CBLErrorInvalidRedirect = 5012
-
The specified network interface is not valid or unknown.
Declaration
Objective-C
CBLErrorUnknownInterface = 5027
-
HTTP status codes start here
Declaration
Objective-C
CBLErrorHTTPBase = 10000
-
Missing or incorrect user authentication
Declaration
Objective-C
CBLErrorHTTPAuthRequired = 10401
-
User doesn’t have permission to access resource
Declaration
Objective-C
CBLErrorHTTPForbidden = 10403
-
Resource not found
Declaration
Objective-C
CBLErrorHTTPNotFound = 10404
-
Update conflict
Declaration
Objective-C
CBLErrorHTTPConflict = 10409
-
HTTP proxy requires authentication
Declaration
Objective-C
CBLErrorHTTPProxyAuthRequired = 10407
-
Data is too large to upload
Declaration
Objective-C
CBLErrorHTTPEntityTooLarge = 10413
-
HTCPCP/1.0 error (RFC 2324)
Declaration
Objective-C
CBLErrorHTTPImATeapot = 10418
-
Something’s wrong with the server
Declaration
Objective-C
CBLErrorHTTPInternalServerError = 10500
-
Unimplemented server functionality
Declaration
Objective-C
CBLErrorHTTPNotImplemented = 10501
-
Service is down temporarily(?)
Declaration
Objective-C
CBLErrorHTTPServiceUnavailable = 10503
-
WebSocket status codes start here
Declaration
Objective-C
CBLErrorWebSocketBase = 11000
-
Peer has to close, e.g. because host app is quitting
Declaration
Objective-C
CBLErrorWebSocketGoingAway = 11001
-
Protocol violation: invalid framing data
Declaration
Objective-C
CBLErrorWebSocketProtocolError = 11002
-
Message payload cannot be handled
Declaration
Objective-C
CBLErrorWebSocketDataError = 11003
-
TCP socket closed unexpectedly
Declaration
Objective-C
CBLErrorWebSocketAbnormalClose = 11006
-
Unparseable WebSocket message
Declaration
Objective-C
CBLErrorWebSocketBadMessageFormat = 11007
-
Message violated unspecified policy
Declaration
Objective-C
CBLErrorWebSocketPolicyError = 11008
-
Message is too large for peer to handle
Declaration
Objective-C
CBLErrorWebSocketMessageTooBig = 11009
-
Peer doesn’t provide a necessary extension
Declaration
Objective-C
CBLErrorWebSocketMissingExtension = 11010
-
Can’t fulfill request due to “unexpected condition”
Declaration
Objective-C
CBLErrorWebSocketCantFulfill = 11011
-
Recoverable messaging error
Declaration
Objective-C
CBLErrorWebSocketCloseUserTransient = 14001
-
Non-recoverable messaging error
Declaration
Objective-C
CBLErrorWebSocketCloseUserPermanent = 14002
-
Invalid JSON string error
Declaration
Objective-C
CBLErrorInvalidJSON = 17001