Package com.mongodb

Class MongoClientException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MongoConfigurationException, MongoConnectionPoolClearedException, MongoSecurityException, MongoServerUnavailableException, MongoTimeoutException, MongoUpdatedEncryptedFieldsException

public class MongoClientException extends MongoException
A base class for exceptions indicating a failure condition with the MongoClient.
Since:
2.12
See Also:
  • Constructor Details

    • MongoClientException

      public MongoClientException(String message)
      Constructs a new instance.
      Parameters:
      message - the message
    • MongoClientException

      public MongoClientException(String message, @Nullable Throwable cause)
      Constructs a new instance.
      Parameters:
      message - the message
      cause - the cause