[Rails-core] Feature: Use self-replying exceptions in ActiveSupport::Rescuable.rescue_from

2015-05-15 Thread Arnaud Rouyer
I'm using a library to handle error responses across five different API apps. To stop all processing, this library raises an error that is later rescued with `rescue_from`. Since DRY is important to me, I also want to avoid repeating the `rescue_from` call and its handler block in all five

Re: [Rails-core] Feature: Use self-replying exceptions in ActiveSupport::Rescuable.rescue_from

2015-05-15 Thread Matt Jones
On Fri, May 15, 2015 at 6:15 AM, Arnaud Rouyer josh.guth...@gmail.com wrote: I'm using a library to handle error responses across five different API apps. To stop all processing, this library raises an error that is later rescued with `rescue_from`. Since DRY is important to me, I also want