':return: A dict with information about exceptions.'

def generate_summary(self):

    res = {'total_exceptions': len(self._exception_data), 'exceptions': {}}
    exception_dict = res['exceptions']
    for exception in self._exception_data:
        phase = exception.phase
        data = (exception.plugin, exception.fuzzable_request, exception.exception, exception.traceback)
        if (phase not in exception_dict):
            exception_dict[phase] = [data]
        else:
            exception_dict[phase].append(data)
    return res
