def raises(exception_cls):
    def wrap(fnIN, *args,**kwargs):
        @functools.wraps(fnIN)
        def wrap_func(*args, **kwargs):
            """Wrapping function with exception translation."""
            # Save and delete the following line and use it in your own code
            # fnIN(*args,**kwargs)
            try:
                return fnIN(*args,**kwargs)
            except Exception as err:
                raise exception_cls(str(err))
        return wrap_func 
    return wrap

# Right and wrong exceptions
:param controller: object that implement methods created by routes lib
dataset/ETHPy150Open manahl/PythonTrainingExercises/Advanced/ExceptionDecorator/solution/Decorators.py/raises--crossover with--dataset/ETHPy150Open nii-cloud/dodai-compute/nova/api/openstack/wsgi.py/Resource.__init__