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