public final class CouchbaseLiteException extends Exception
Constructor and Description |
---|
CouchbaseLiteException(int domain,
int code)
Constructs a new exception with the specified error domain and error code
|
CouchbaseLiteException(int domain,
int code,
Map<String,Object> info) |
CouchbaseLiteException(int domain,
int code,
Throwable cause)
Constructs a new exception with the specified error domain, error code and the specified cause
|
CouchbaseLiteException(String message)
Constructs a new exception with the specified detail message.
|
CouchbaseLiteException(String message,
int domain,
int code)
Constructs a new exception with the specified detail message, error domain and error code
|
CouchbaseLiteException(String message,
Throwable cause,
int 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.
|
int |
getDomain()
Access the error domain for this error.
|
String |
getDomainString()
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(String message)
message
- the detail message.public CouchbaseLiteException(Throwable cause)
cause
- the causepublic CouchbaseLiteException(int domain, int code)
domain
- the error domaincode
- the error codepublic CouchbaseLiteException(String message, int domain, int code)
message
- the detail messagedomain
- the error domaincode
- the error codepublic CouchbaseLiteException(int domain, int code, Throwable cause)
domain
- the error domaincode
- the error codecause
- the causepublic CouchbaseLiteException(String message, Throwable cause, int domain, int code)
message
- the detail messagecause
- the causedomain
- the error domaincode
- the error codepublic int getDomain()
public String getDomainString()
public int getCode()