Sha256: 7f012dc7b31e4526a8cb90435d0209ac37c470adf54c7daa117393ebba53d5cd

Contents?: true

Size: 302 Bytes

Versions: 6

Compression:

Stored size: 302 Bytes

Contents

# Simple feature that returns the exception in case it occurs.
# This feature is automatically loaded in the stack.
class Restfulie::Client::Feature::RescueException
  
  def execute(flow, request, env)
    begin
      flow.continue(request, env)
    rescue Exception => e
      e
    end
  end
  
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
restfulie-nosqlite-1.0.4 lib/restfulie/client/feature/rescue_exception.rb
restfulie-1.1.1 lib/restfulie/client/feature/rescue_exception.rb
restfulie-1.1.0 lib/restfulie/client/feature/rescue_exception.rb
restfulie-nosqlite-1.0.3 lib/restfulie/client/feature/rescue_exception.rb
restfulie-1.0.3 lib/restfulie/client/feature/rescue_exception.rb
restfulie-1.0.0 lib/restfulie/client/feature/rescue_exception.rb