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 |
---|---|
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.@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, 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 String getDomain()
public int getCode()