Package com.mongodb

Class MongoServerException

    • Constructor Detail

      • MongoServerException

        public MongoServerException​(java.lang.String message,
                                    ServerAddress serverAddress)
        Deprecated.
        Construct a new instance.
        Parameters:
        message - the message from the server
        serverAddress - the address of the server
      • MongoServerException

        public MongoServerException​(int code,
                                    java.lang.String message,
                                    ServerAddress serverAddress)
        Deprecated.
        Construct a new instance.
        Parameters:
        code - the error code from the server
        message - the message from the server
        serverAddress - the address of the server
    • Method Detail

      • getServerAddress

        public ServerAddress getServerAddress()
        Deprecated.
        Gets the address of the server.
        Returns:
        the address