'Convert exception info to a value for the values list.'

def _get_value(self, exc_type, exc_value, exc_traceback):

    stack_info = get_stack_info(iter_traceback_frames(exc_traceback), transformer=self.transform, capture_locals=self.client.capture_locals)
    exc_module = getattr(exc_type, '__module__', None)
    if exc_module:
        exc_module = str(exc_module)
    exc_type = getattr(exc_type, '__name__', '<unknown>')
    return {'value': to_unicode(exc_value), 'type': str(exc_type), 'module': to_unicode(exc_module), 'stacktrace': stack_info}
