Package com.mongodb

Class MongoTimeoutException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MongoOperationTimeoutException

public class MongoTimeoutException extends MongoClientException
An exception indicating that the driver has timed out waiting for either a server or a connection to become available.
See Also:
  • Constructor Details

    • MongoTimeoutException

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

      @Alpha(CLIENT) public MongoTimeoutException(String message, Throwable cause)
      Construct a new instance
      Parameters:
      message - the message
      cause - the cause
      Since:
      5.2