public class MongoQueryException extends MongoServerException
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
errorMessage |
private static long |
serialVersionUID |
| Constructor and Description |
|---|
MongoQueryException(ServerAddress address,
int errorCode,
java.lang.String errorMessage)
Construct an instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getErrorCode()
Gets the error code for this query failure.
|
java.lang.String |
getErrorMessage()
Gets the error message for this query failure.
|
getServerAddressfromThrowable, getCodeprivate static final long serialVersionUID
private final java.lang.String errorMessage
public MongoQueryException(ServerAddress address, int errorCode, java.lang.String errorMessage)
address - the server addresserrorCode - the error codeerrorMessage - the error message