Skip to content

cmaruz/continuable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

continuable lets you define exceptions that can be resumed

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages