public class MongoQueryException extends MongoServerException
| Constructor and Description |
|---|
MongoQueryException(ServerAddress address,
int errorCode,
String errorMessage)
Construct an instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getErrorCode()
Gets the error code for this query failure.
|
String |
getErrorMessage()
Gets the error message for this query failure.
|
getServerAddressfromThrowable, getCodeaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MongoQueryException(ServerAddress address, int errorCode, String errorMessage)
address - the server addresserrorCode - the error codeerrorMessage - the error messagepublic int getErrorCode()
public String getErrorMessage()