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