Package com.mongodb

Class MongoServerException

    • Constructor Detail

      • MongoServerException

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

        public MongoServerException​(int code,
                                    String message,
                                    ServerAddress serverAddress)
        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​()
        Gets the address of the server.
        Returns:
        the address