public final class CouchbaseLiteException extends Exception
Constructor and Description |
---|
CouchbaseLiteException(CBLInternalException cause)
Constructs a new exception from an internal exception
|
CouchbaseLiteException(String message)
Constructs a new exception with the specified detail message.
|
CouchbaseLiteException(String domain,
int code)
Deprecated.
Must supply an error message
|
CouchbaseLiteException(String domain,
int code,
Map<String,Object> info)
Deprecated.
Must supply an error message
|
CouchbaseLiteException(String domain,
int code,
Throwable cause)
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
|
CouchbaseLiteException(String message,
Throwable cause,
String domain,
int code)
Constructs a new exception with the specified error domain, error code and the specified cause
|
CouchbaseLiteException(Throwable cause)
Constructs a new exception with the specified cause
|
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Access the error code for this error.
|
String |
getDomain()
Access the error domain for this error.
|
Map<String,Object> |
getInfo() |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public CouchbaseLiteException(@NonNull String message)
message
- the detail message.public CouchbaseLiteException(@NonNull Throwable cause)
cause
- the cause@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 Throwable cause)
domain
- the error domaincode
- the error codecause
- the cause@Deprecated public CouchbaseLiteException(@NonNull String domain, int code, Map<String,Object> info)
domain
- the error domaincode
- the error codeinfo
- the internal info mappublic CouchbaseLiteException(@NonNull String message, @NonNull Throwable cause, @NonNull String domain, int code)
message
- the detail messagecause
- the causedomain
- the error domaincode
- the error codepublic CouchbaseLiteException(@NonNull CBLInternalException cause)
cause
- the internal exception@NonNull public String getDomain()
public int getCode()