Package com.mongodb

Class MongoSocketException

    • Constructor Detail

      • MongoSocketException

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

      • getServerAddress

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