Continuable is a gem that helps you resuming execution flow after rescuing exceptions.
add to your Gemfile :
How to raise a continuable exception
Defining a continuable exception
class ContinuableException < Exception ... include Continuable ... end ... raise ContinuableException.new ...
Raising a continuable exception on the fly
... raise_continuable Exception.new ...
Resuming an exception
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.