Class: SharkOnLambda::Middleware::Rescuer

Inherits:
Base
  • Object
show all
Defined in:
lib/shark_on_lambda/middleware/rescuer.rb

Direct Known Subclasses

JsonapiRescuer

Instance Attribute Summary

Attributes inherited from Base

#app

Instance Method Summary collapse

Methods inherited from Base

#call, #initialize

Constructor Details

This class inherits a constructor from SharkOnLambda::Middleware::Base

Instance Method Details

#call!(env) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/shark_on_lambda/middleware/rescuer.rb', line 6

def call!(env)
  app.call(env)
rescue Errors::Base => e
  rescue_shark_error(e)
rescue StandardError => e
  rescue_standard_error(e)
end