Package com.mongodb

Class MongoQueryException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MongoCursorNotFoundException

public class MongoQueryException extends MongoCommandException
An exception indicating that a query operation failed on the server.
Since:
3.0
  • Constructor Details

    • MongoQueryException

      public MongoQueryException(BsonDocument response, ServerAddress serverAddress)
      Construct an instance.
      Parameters:
      response - the server response document
      serverAddress - the server address
      Since:
      4.8