continuable lets you define exceptions that can be resumed
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.document
.gitignore
Gemfile
LICENSE.txt
README.md
Rakefile
VERSION
continuable.gemspec

README.md

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.