0.0
No release in over 3 years
Low commit activity in last 3 years
continuable lets you define exceptions that can be resumed
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.8.4
= 0.9.11
~> 3.12
 Project Readme

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.