public final class CouchbaseLiteException extends Exception
| Constructor and Description |
|---|
CouchbaseLiteException()
This method is not part of the public API.
|
CouchbaseLiteException(CBLInternalException cause)
Deprecated.
Must supply an error message
|
CouchbaseLiteException(Exception cause)
Deprecated.
Must supply an error message
|
CouchbaseLiteException(String message)
Constructs a new exception with the specified detail message.
|
CouchbaseLiteException(String message,
CBLInternalException cause)
Constructs a new exception from an internal exception
|
CouchbaseLiteException(String message,
Exception cause)
Constructs a new exception with the specified cause
|
CouchbaseLiteException(String message,
Exception cause,
String domain,
int code)
Constructs a new exception with the specified error domain, error code and the specified cause
|
CouchbaseLiteException(String message,
Exception cause,
String domain,
int code,
Map<String,Object> info)
This method is not part of the public API.
|
CouchbaseLiteException(String domain,
int code)
Deprecated.
Must supply an error message
|
CouchbaseLiteException(String domain,
int code,
Exception cause)
Deprecated.
Must supply an error message
|
CouchbaseLiteException(String domain,
int code,
Map<String,Object> info)
Deprecated.
Must supply an error message
|
CouchbaseLiteException(String message,
String domain,
int code)
Constructs a new exception with the specified detail message, error domain and error code
|
| Modifier and Type | Method and Description |
|---|---|
static CouchbaseLiteException |
convertC4Error(C4Error c4err) |
static CouchbaseLiteException |
convertException(LiteCoreException e) |
static CouchbaseLiteException |
convertException(LiteCoreException e,
String msg) |
int |
getCode()
Access the error code for this error.
|
String |
getDomain()
Access the error domain for this error.
|
Map<String,Object> |
getInfo() |
static CouchbaseLiteException |
toCouchbaseLiteException(int domain,
int status,
int info) |
static CouchbaseLiteException |
toCouchbaseLiteException(int domainCode,
int statusCode,
String msg,
Exception e) |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic CouchbaseLiteException(@NonNull
String message)
message - the detail message.@Deprecated public CouchbaseLiteException(@NonNull Exception cause)
cause - the causepublic CouchbaseLiteException(@NonNull
String message,
@NonNull
Exception cause)
cause - the cause@Deprecated public CouchbaseLiteException(@NonNull CBLInternalException cause)
cause - the internal exceptionpublic CouchbaseLiteException(@NonNull
String message,
@NonNull
CBLInternalException cause)
cause - the internal exception@Deprecated public CouchbaseLiteException(@NonNull String domain, int code)
domain - the error domaincode - the error codepublic CouchbaseLiteException(@NonNull
String message,
@NonNull
String domain,
int code)
message - the detail messagedomain - the error domaincode - the error code@Deprecated public CouchbaseLiteException(@NonNull String domain, int code, @NonNull Exception cause)
domain - the error domaincode - the error codecause - the cause@Deprecated public CouchbaseLiteException(@NonNull String domain, int code, @Nullable Map<String,Object> info)
domain - the error domaincode - the error codeinfo - the internal info mappublic CouchbaseLiteException(@NonNull
String message,
@NonNull
Exception cause,
@NonNull
String domain,
int code)
message - the detail messagecause - the causedomain - the error domaincode - the error codepublic CouchbaseLiteException()
@NonNull public static CouchbaseLiteException convertC4Error(@Nullable C4Error c4err)
@NonNull public static CouchbaseLiteException convertException(@Nullable LiteCoreException e)
@NonNull public static CouchbaseLiteException convertException(@Nullable LiteCoreException e, @NonNull String msg)
@NonNull public static CouchbaseLiteException toCouchbaseLiteException(int domain, int status, int info)
@NonNull public static CouchbaseLiteException toCouchbaseLiteException(int domainCode, int statusCode, @Nullable String msg, @Nullable Exception e)
@NonNull public String getDomain()
public int getCode()