Package com.mongodb
Class MongoQueryException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MongoCursorNotFoundException
An exception indicating that a query operation failed on the server.
- Since:
- 3.0
-
Field Summary
Fields inherited from class com.mongodb.MongoException
TRANSIENT_TRANSACTION_ERROR_LABEL, UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL
-
Constructor Summary
ConstructorDescriptionMongoQueryException
(BsonDocument response, ServerAddress serverAddress) Construct an instance. -
Method Summary
Methods inherited from class com.mongodb.MongoCommandException
getErrorCode, getErrorCodeName, getErrorMessage, getResponse
Methods inherited from class com.mongodb.MongoServerException
getServerAddress
Methods inherited from class com.mongodb.MongoException
addLabel, addLabels, addLabels, fromThrowable, fromThrowableNonNull, getCode, getErrorLabels, hasErrorLabel, removeLabel
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MongoQueryException
Construct an instance.- Parameters:
response
- the server response documentserverAddress
- the server address- Since:
- 4.8
-