Package com.mongodb

Class MongoServerUnavailableException

All Implemented Interfaces:
Serializable

public final class MongoServerUnavailableException extends MongoClientException
An exception indicating that the server on which an operation is selected to run is no longer available to execute operations.

An example is when a replica set is reconfigured to hide a member on which there is an open cursor, and the application attempts to get more cursor results.

Since:
4.4
See Also:
  • Constructor Details

    • MongoServerUnavailableException

      public MongoServerUnavailableException(String message)
      Construct a new instance.
      Parameters:
      message - the message