Package com.mongodb

Class MongoSocketException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MongoSocketClosedException, MongoSocketOpenException, MongoSocketReadException, MongoSocketReadTimeoutException, MongoSocketWriteException

@Deprecated(since="2021-05-27") public class MongoSocketException extends MongoException
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
Subclass of MongoException representing a network-related exception
Since:
2.12
See Also:
  • Constructor Details

    • MongoSocketException

      public MongoSocketException(String message, ServerAddress serverAddress)
      Deprecated.
      Construct a new instance.
      Parameters:
      message - the message
      serverAddress - the address
  • Method Details

    • getServerAddress

      public ServerAddress getServerAddress()
      Deprecated.
      Gets the server address for this exception.
      Returns:
      the address