code: def add_scan_error(self, scan_id, host='', name='', value='', port=''):
          
          self.scan_collection.add_result(scan_id, ResultType.ERROR, host, name,
                                          value, port)
docs: Adds an error result to scan_id scan.