I\'m defining a custom Exception on a model in rails as kind of a wrapper Exception: (begin[code]rescue[raise custom exception]end)
begin[code]rescue[raise custom exception]end
When I raise the Exc
You can create an new instance of your Exception subclass, then raise that. For instance:
Exception
begin # do something rescue => e error = MyException.new(e, 'some info') raise error end