Package com.couchbase.lite
Class CBLError.Code
- java.lang.Object
-
- com.couchbase.lite.CBLError.Code
-
-
Field Summary
Fields Modifier and Type Field Description static intASSERTION_FAILEDInternal assertion failurestatic intBAD_DOC_IDInvalid document IDstatic intBAD_REVISION_IDAn invalid revision ID was attempted to be used to insert a document (usually because of an invalid revision ID written directly into Sync Gateway via the REST API)static intBUSYDatabase is busy / lockedstatic intCANT_OPEN_FILEDatabase file can't be opened; may not existstatic intCANT_UPGRADE_DATABASEDatabase can't be upgraded (might be unsupported dev version)static intCONFLICTDocument update conflictstatic intCORRUPT_DATAData is corruptedstatic intCORRUPT_REVISION_DATARevision contains corrupted/unreadable datastatic intCRYPTOEncryption / Decryption errorstatic intDATABASE_TOO_NEWDatabase file format is newer than what I can openstatic intDATABASE_TOO_OLDDatabase file format is older than what I can openstatic intDNS_FAILUREDNS Lookup failedstatic intHTTP_AUTH_REQUIREDMissing or incorrect user authenticationstatic intHTTP_BASEstatic intHTTP_CONFLICTUpdate conflictstatic intHTTP_ENTITY_TOO_LARGEData is too large to uploadstatic intHTTP_FORBIDDENUser doesn't have permission to access resourcestatic intHTTP_IM_A_TEAPOTstatic intHTTP_INTERNAL_SERVER_ERRORSomething's wrong with the serverstatic intHTTP_NOT_FOUNDResource not foundstatic intHTTP_NOT_IMPLEMENTEDUnimplemented server functionalitystatic intHTTP_PROXY_AUTH_REQUIREDHTTP proxy requires authenticationstatic intHTTP_SERVICE_UNAVAILABLEService is down temporarilystatic intINVALID_PARAMETERInvalid function parameter or struct valuestatic intINVALID_QUERYInvalid querystatic intINVALID_QUERY_PARAMUnknown query param name, or param number out of rangestatic intINVALID_REDIRECTThe client was redirected to an invalid location by the serverstatic intINVALID_URLThe provided URL is not validstatic intIO_ERRORFile I/O errorstatic intMEMORY_ERRORMemory allocation failed (out of memory?)static intMISSING_INDEXNo such index, or query requires a nonexistent indexstatic intNETWORK_OFFSETstatic intNOT_A_DATABASE_FILEstatic intNOT_FOUNDDocument not foundstatic intNOT_IN_TRANSACTIONFunction cannot be called while in a transactionstatic intNOT_OPENDatabase/KeyStore is not openstatic intNOT_WRITABLEFile is not writeablestatic intREMOTE_ERRORUnknown error from remote serverstatic intTIMEOUTSocket timeout during an operationstatic intTLS_CERT_EXPIREDThe provided TLS certificate has expiredstatic intTLS_CERT_UNKNOWN_ROOTSelf-signed cert, or unknown anchor certstatic intTLS_CERT_UNTRUSTEDCert isn't trusted for other reasonstatic intTLS_CLIENT_CERT_REJECTEDClient certificate was rejected by the serverstatic intTLS_CLIENT_CERT_REQUIREDA required client certificate was not providedstatic intTLS_HANDSHAKE_FAILEDFailure during TLS handshake processstatic intTOO_MANY_REDIRECTSToo many HTTP redirects for the HTTP client to handlestatic intTRANSACTION_NOT_CLOSEDDatabase can't be closed while a transaction is openstatic intUNEXPECTED_ERRORInternal unexpected C++ exceptionstatic intUNIMPLEMENTEDAn unimplemented API callstatic intUNKNOWN_HOSTDNS server doesn't know the hostnamestatic intUNSUPPORTEDOperation not supported on this databasestatic intUNSUPPORTED_ENCRYPTIONUnsupported encryption algorithmstatic intWEB_SOCKET_ABNORMAL_CLOSETCP socket closed unexpectedlystatic intWEB_SOCKET_BAD_MESSAGE_FORMATUnparseable WebSocket messagestatic intWEB_SOCKET_CANT_FULFILLCan't fulfill request due to "unexpected condition"static intWEB_SOCKET_CLOSE_USER_PERMANENTExceptions during P2P replication that are permanent will be assigned this error codestatic intWEB_SOCKET_CLOSE_USER_TRANSIENTExceptions during P2P replication that are transient will be assigned this error codestatic intWEB_SOCKET_DATA_ERRORMessage payload cannot be handledstatic intWEB_SOCKET_GOING_AWAYPeer has to close, e.g.static intWEB_SOCKET_MESSAGE_TOO_BIGMessage is too large for peer to handlestatic intWEB_SOCKET_MISSING_EXTENSIONPeer doesn't provide a necessary extensionstatic intWEB_SOCKET_NORMAL_CLOSENot an actual error, but serves as the lower bound for WebSocket related errorsstatic intWEB_SOCKET_POLICY_ERRORMessage violated unspecified policystatic intWEB_SOCKET_PROTOCOL_ERRORProtocol violation: invalid framing datastatic intWEB_SOCKET_TLS_FAILUREstatic intWEB_SOCKET_USERstatic intWRONG_FORMATDatabase exists but not in the format/storage requested
-
-
-
Field Detail
-
ASSERTION_FAILED
public static final int ASSERTION_FAILED
Internal assertion failure- See Also:
- Constant Field Values
-
UNIMPLEMENTED
public static final int UNIMPLEMENTED
An unimplemented API call- See Also:
- Constant Field Values
-
UNSUPPORTED_ENCRYPTION
public static final int UNSUPPORTED_ENCRYPTION
Unsupported encryption algorithm- See Also:
- Constant Field Values
-
BAD_REVISION_ID
public static final int BAD_REVISION_ID
An invalid revision ID was attempted to be used to insert a document (usually because of an invalid revision ID written directly into Sync Gateway via the REST API)- See Also:
- Constant Field Values
-
CORRUPT_REVISION_DATA
public static final int CORRUPT_REVISION_DATA
Revision contains corrupted/unreadable data- See Also:
- Constant Field Values
-
NOT_OPEN
public static final int NOT_OPEN
Database/KeyStore is not open- See Also:
- Constant Field Values
-
NOT_FOUND
public static final int NOT_FOUND
Document not found- See Also:
- Constant Field Values
-
CONFLICT
public static final int CONFLICT
Document update conflict- See Also:
- Constant Field Values
-
INVALID_PARAMETER
public static final int INVALID_PARAMETER
Invalid function parameter or struct value- See Also:
- Constant Field Values
-
UNEXPECTED_ERROR
public static final int UNEXPECTED_ERROR
Internal unexpected C++ exception- See Also:
- Constant Field Values
-
CANT_OPEN_FILE
public static final int CANT_OPEN_FILE
Database file can't be opened; may not exist- See Also:
- Constant Field Values
-
IO_ERROR
public static final int IO_ERROR
File I/O error- See Also:
- Constant Field Values
-
MEMORY_ERROR
public static final int MEMORY_ERROR
Memory allocation failed (out of memory?)- See Also:
- Constant Field Values
-
NOT_WRITABLE
public static final int NOT_WRITABLE
File is not writeable- See Also:
- Constant Field Values
-
CORRUPT_DATA
public static final int CORRUPT_DATA
Data is corrupted- See Also:
- Constant Field Values
-
BUSY
public static final int BUSY
Database is busy / locked- See Also:
- Constant Field Values
-
NOT_IN_TRANSACTION
public static final int NOT_IN_TRANSACTION
Function cannot be called while in a transaction- See Also:
- Constant Field Values
-
TRANSACTION_NOT_CLOSED
public static final int TRANSACTION_NOT_CLOSED
Database can't be closed while a transaction is open- See Also:
- Constant Field Values
-
UNSUPPORTED
public static final int UNSUPPORTED
Operation not supported on this database- See Also:
- Constant Field Values
-
NOT_A_DATABASE_FILE
public static final int NOT_A_DATABASE_FILE
- See Also:
- Constant Field Values
-
WRONG_FORMAT
public static final int WRONG_FORMAT
Database exists but not in the format/storage requested- See Also:
- Constant Field Values
-
CRYPTO
public static final int CRYPTO
Encryption / Decryption error- See Also:
- Constant Field Values
-
INVALID_QUERY
public static final int INVALID_QUERY
Invalid query- See Also:
- Constant Field Values
-
MISSING_INDEX
public static final int MISSING_INDEX
No such index, or query requires a nonexistent index- See Also:
- Constant Field Values
-
INVALID_QUERY_PARAM
public static final int INVALID_QUERY_PARAM
Unknown query param name, or param number out of range- See Also:
- Constant Field Values
-
REMOTE_ERROR
public static final int REMOTE_ERROR
Unknown error from remote server- See Also:
- Constant Field Values
-
DATABASE_TOO_OLD
public static final int DATABASE_TOO_OLD
Database file format is older than what I can open- See Also:
- Constant Field Values
-
DATABASE_TOO_NEW
public static final int DATABASE_TOO_NEW
Database file format is newer than what I can open- See Also:
- Constant Field Values
-
BAD_DOC_ID
public static final int BAD_DOC_ID
Invalid document ID- See Also:
- Constant Field Values
-
CANT_UPGRADE_DATABASE
public static final int CANT_UPGRADE_DATABASE
Database can't be upgraded (might be unsupported dev version)- See Also:
- Constant Field Values
-
NETWORK_OFFSET
public static final int NETWORK_OFFSET
- See Also:
- Constant Field Values
-
DNS_FAILURE
public static final int DNS_FAILURE
DNS Lookup failed- See Also:
- Constant Field Values
-
UNKNOWN_HOST
public static final int UNKNOWN_HOST
DNS server doesn't know the hostname- See Also:
- Constant Field Values
-
TIMEOUT
public static final int TIMEOUT
Socket timeout during an operation- See Also:
- Constant Field Values
-
INVALID_URL
public static final int INVALID_URL
The provided URL is not valid- See Also:
- Constant Field Values
-
TOO_MANY_REDIRECTS
public static final int TOO_MANY_REDIRECTS
Too many HTTP redirects for the HTTP client to handle- See Also:
- Constant Field Values
-
TLS_HANDSHAKE_FAILED
public static final int TLS_HANDSHAKE_FAILED
Failure during TLS handshake process- See Also:
- Constant Field Values
-
TLS_CERT_EXPIRED
public static final int TLS_CERT_EXPIRED
The provided TLS certificate has expired- See Also:
- Constant Field Values
-
TLS_CERT_UNTRUSTED
public static final int TLS_CERT_UNTRUSTED
Cert isn't trusted for other reason- See Also:
- Constant Field Values
-
TLS_CLIENT_CERT_REQUIRED
public static final int TLS_CLIENT_CERT_REQUIRED
A required client certificate was not provided- See Also:
- Constant Field Values
-
TLS_CLIENT_CERT_REJECTED
public static final int TLS_CLIENT_CERT_REJECTED
Client certificate was rejected by the server- See Also:
- Constant Field Values
-
TLS_CERT_UNKNOWN_ROOT
public static final int TLS_CERT_UNKNOWN_ROOT
Self-signed cert, or unknown anchor cert- See Also:
- Constant Field Values
-
INVALID_REDIRECT
public static final int INVALID_REDIRECT
The client was redirected to an invalid location by the server- See Also:
- Constant Field Values
-
HTTP_BASE
public static final int HTTP_BASE
- See Also:
- Constant Field Values
-
HTTP_AUTH_REQUIRED
public static final int HTTP_AUTH_REQUIRED
Missing or incorrect user authentication- See Also:
- Constant Field Values
-
HTTP_FORBIDDEN
public static final int HTTP_FORBIDDEN
User doesn't have permission to access resource- See Also:
- Constant Field Values
-
HTTP_NOT_FOUND
public static final int HTTP_NOT_FOUND
Resource not found- See Also:
- Constant Field Values
-
HTTP_CONFLICT
public static final int HTTP_CONFLICT
Update conflict- See Also:
- Constant Field Values
-
HTTP_PROXY_AUTH_REQUIRED
public static final int HTTP_PROXY_AUTH_REQUIRED
HTTP proxy requires authentication- See Also:
- Constant Field Values
-
HTTP_ENTITY_TOO_LARGE
public static final int HTTP_ENTITY_TOO_LARGE
Data is too large to upload- See Also:
- Constant Field Values
-
HTTP_IM_A_TEAPOT
public static final int HTTP_IM_A_TEAPOT
- See Also:
- Constant Field Values
-
HTTP_INTERNAL_SERVER_ERROR
public static final int HTTP_INTERNAL_SERVER_ERROR
Something's wrong with the server- See Also:
- Constant Field Values
-
HTTP_NOT_IMPLEMENTED
public static final int HTTP_NOT_IMPLEMENTED
Unimplemented server functionality- See Also:
- Constant Field Values
-
HTTP_SERVICE_UNAVAILABLE
public static final int HTTP_SERVICE_UNAVAILABLE
Service is down temporarily- See Also:
- Constant Field Values
-
WEB_SOCKET_NORMAL_CLOSE
public static final int WEB_SOCKET_NORMAL_CLOSE
Not an actual error, but serves as the lower bound for WebSocket related errors- See Also:
- Constant Field Values
-
WEB_SOCKET_GOING_AWAY
public static final int WEB_SOCKET_GOING_AWAY
Peer has to close, e.g. because host app is quitting- See Also:
- Constant Field Values
-
WEB_SOCKET_PROTOCOL_ERROR
public static final int WEB_SOCKET_PROTOCOL_ERROR
Protocol violation: invalid framing data- See Also:
- Constant Field Values
-
WEB_SOCKET_DATA_ERROR
public static final int WEB_SOCKET_DATA_ERROR
Message payload cannot be handled- See Also:
- Constant Field Values
-
WEB_SOCKET_ABNORMAL_CLOSE
public static final int WEB_SOCKET_ABNORMAL_CLOSE
TCP socket closed unexpectedly- See Also:
- Constant Field Values
-
WEB_SOCKET_BAD_MESSAGE_FORMAT
public static final int WEB_SOCKET_BAD_MESSAGE_FORMAT
Unparseable WebSocket message- See Also:
- Constant Field Values
-
WEB_SOCKET_POLICY_ERROR
public static final int WEB_SOCKET_POLICY_ERROR
Message violated unspecified policy- See Also:
- Constant Field Values
-
WEB_SOCKET_MESSAGE_TOO_BIG
public static final int WEB_SOCKET_MESSAGE_TOO_BIG
Message is too large for peer to handle- See Also:
- Constant Field Values
-
WEB_SOCKET_MISSING_EXTENSION
public static final int WEB_SOCKET_MISSING_EXTENSION
Peer doesn't provide a necessary extension- See Also:
- Constant Field Values
-
WEB_SOCKET_CANT_FULFILL
public static final int WEB_SOCKET_CANT_FULFILL
Can't fulfill request due to "unexpected condition"- See Also:
- Constant Field Values
-
WEB_SOCKET_TLS_FAILURE
public static final int WEB_SOCKET_TLS_FAILURE
- See Also:
- Constant Field Values
-
WEB_SOCKET_USER
public static final int WEB_SOCKET_USER
- See Also:
- Constant Field Values
-
WEB_SOCKET_CLOSE_USER_TRANSIENT
public static final int WEB_SOCKET_CLOSE_USER_TRANSIENT
Exceptions during P2P replication that are transient will be assigned this error code- See Also:
- Constant Field Values
-
WEB_SOCKET_CLOSE_USER_PERMANENT
public static final int WEB_SOCKET_CLOSE_USER_PERMANENT
Exceptions during P2P replication that are permanent will be assigned this error code- See Also:
- Constant Field Values
-
-