Package com.couchbase.lite
Class CouchbaseLiteException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.couchbase.lite.CouchbaseLiteException
- All Implemented Interfaces:
Serializable
Misfortune: The little fox gets its tail wet.
- See Also:
-
Constructor Summary
ConstructorDescriptionThis method is not part of the public API.CouchbaseLiteException
(Exception cause) Deprecated.Must supply an error messageCouchbaseLiteException
(String message) Constructs a new exception with the specified detail message.CouchbaseLiteException
(String domain, int code) Deprecated.Must supply an error messageCouchbaseLiteException
(String domain, int code, Exception cause) Deprecated.Must supply an error messageCouchbaseLiteException
(String domain, int code, Map<String, Object> info) Deprecated.Must supply an error messageCouchbaseLiteException
(String message, Exception cause) Constructs a new exception with the specified causeCouchbaseLiteException
(String message, Exception cause, String domain, int code) Constructs a new exception with the specified error domain, error code and the specified causeCouchbaseLiteException
(String message, Exception cause, String domain, int code, Map<String, Object> info) This method is not part of the public API.CouchbaseLiteException
(String message, String domain, int code) Constructs a new exception with the specified detail message, error domain and error code -
Method Summary
Modifier and TypeMethodDescriptionstatic CouchbaseLiteException
static CouchbaseLiteException
convertException
(LiteCoreException e, String msg) int
getCode()
Access the error code for this error.Access the error domain for this error.getInfo()
static CouchbaseLiteException
toCouchbaseLiteException
(int domain, int status, int info) static CouchbaseLiteException
toCouchbaseLiteException
(int domainCode, int statusCode, String msg, Exception e) toString()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
CouchbaseLiteException
Constructs a new exception with the specified detail message.- Parameters:
message
- the detail message.
-
CouchbaseLiteException
Deprecated.Must supply an error messageConstructs a new exception with the specified cause- Parameters:
cause
- the cause
-
CouchbaseLiteException
Constructs a new exception with the specified cause- Parameters:
cause
- the cause
-
CouchbaseLiteException
Deprecated.Must supply an error messageConstructs a new exception with the specified error domain and error code- Parameters:
domain
- the error domaincode
- the error code
-
CouchbaseLiteException
Constructs a new exception with the specified detail message, error domain and error code- Parameters:
message
- the detail messagedomain
- the error domaincode
- the error code
-
CouchbaseLiteException
@Deprecated public CouchbaseLiteException(@NonNull String domain, int code, @NonNull Exception cause) Deprecated.Must supply an error messageConstructs a new exception with the specified error domain, error code and the specified cause- Parameters:
domain
- the error domaincode
- the error codecause
- the cause
-
CouchbaseLiteException
@Deprecated public CouchbaseLiteException(@NonNull String domain, int code, @Nullable Map<String, Object> info) Deprecated.Must supply an error messageConstructs a new exception with the specified error domain, error code and the specified cause- Parameters:
domain
- the error domaincode
- the error codeinfo
- the internal info map
-
CouchbaseLiteException
public CouchbaseLiteException(@NonNull String message, @NonNull Exception cause, @NonNull String domain, int code) Constructs a new exception with the specified error domain, error code and the specified cause- Parameters:
message
- the detail messagecause
- the causedomain
- the error domaincode
- the error code
-
CouchbaseLiteException
public CouchbaseLiteException()This method is not part of the public API. Do not use it. It may change or disappear at any time. -
CouchbaseLiteException
public CouchbaseLiteException(@Nullable String message, @Nullable Exception cause, @Nullable String domain, int code, @Nullable Map<String, Object> info) This method is not part of the public API. Do not use it. It may change or disappear at any time.
-
-
Method Details
-
convertException
-
convertException
@NonNull public static CouchbaseLiteException convertException(@Nullable LiteCoreException e, @NonNull String msg) -
toCouchbaseLiteException
@NonNull public static CouchbaseLiteException toCouchbaseLiteException(int domain, int status, int info) -
toCouchbaseLiteException
@NonNull public static CouchbaseLiteException toCouchbaseLiteException(int domainCode, int statusCode, @Nullable String msg, @Nullable Exception e) -
getDomain
Access the error domain for this error.- Returns:
- The numerical domain code for this error.
-
getCode
public int getCode()Access the error code for this error.- Returns:
- The numerical error code for this error.
-
getInfo
-
toString
-