public final class CouchbaseLiteException extends RuntimeException
| 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,
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(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.
|
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic 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(int domain,
int code,
Throwable cause)
domain - the error domaincode - the error codecause - the causepublic int getDomain()
public String getDomainString()
public int getCode()