Package com.mongodb

Class MongoWriteException

    • Constructor Detail

      • MongoWriteException

        public MongoWriteException​(WriteError error,
                                   ServerAddress serverAddress)
        Construct an instance
        Parameters:
        error - the error
        serverAddress - the server address
    • Method Detail

      • getError

        public WriteError getError()
        Gets the error.
        Returns:
        the error