Class: Restfulie::Client::Feature::RescueException
- Inherits:
-
Object
- Object
- Restfulie::Client::Feature::RescueException
- Defined in:
- lib/restfulie/client/feature/rescue_exception.rb
Overview
Simple feature that returns the exception in case it occurs. This feature is automatically loaded in the stack.
Instance Method Summary collapse
Instance Method Details
#execute(flow, request, env) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/restfulie/client/feature/rescue_exception.rb', line 5 def execute(flow, request, env) begin flow.continue(request, env) rescue Exception => e e end end |