<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 """Wraps function fn in a try catch block that re-raises error_class. Args: fn (function):
 function to wrapped error_class (Exception):
 Error class to be re-raised Returns: (object):
 fn wrapped in a try catch. """

    def wrapper(*args, **kwargs):
        try:
            return fn(*args, **kwargs)
        except Exception as e:
            six.reraise(error_class, error_class(e), sys.exc_info()[2])

    return wrapper