Class: RiderServer::Services::RailsExceptionMiddleware

Inherits:
Object
  • Object
show all
Defined in:
lib/rider_server/services/rails.rb

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ RailsExceptionMiddleware

Returns a new instance of RailsExceptionMiddleware.



117
118
119
# File 'lib/rider_server/services/rails.rb', line 117

def initialize(app)
  @app = app
end

Instance Method Details

#call(env) ⇒ Object



121
122
123
124
125
126
# File 'lib/rider_server/services/rails.rb', line 121

def call(env)
  @app.call(env)
rescue => e
  Services::CaptureExceptions.handle_exception(e, env)
  raise
end