Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 884 Bytes

README.md

File metadata and controls

52 lines (37 loc) · 884 Bytes

continuable

Continuable is a gem that helps you resuming execution flow after rescuing exceptions.

Usage

Installation

add to your Gemfile :

gem 'continuable'

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

Credits

This gem was inspired by:

Copyright

Copyright (c) 2013 Mario Caropreso and Yann Armand. See LICENSE.txt for further details.