Continuable is a gem that helps you resuming execution flow after rescuing exceptions.
add to your Gemfile :
gem 'continuable'
class ContinuableException < Exception
...
include Continuable
...
end
...
raise ContinuableException.new
...
...
raise_continuable Exception.new
...
rescue Exception => ex
ex.continue
end
This gem was inspired by:
- This talk about exceptions by Avdi Grimm: http://avdi.org/talks/rockymtnruby-2011/things-you-didnt-know-about-exceptions.html
- The acread gem (https://github.com/yarmand/acread)
Copyright (c) 2013 Mario Caropreso and Yann Armand. See LICENSE.txt for further details.