Class: Raygun::Middleware::RackExceptionInterceptor
- Inherits:
-
Object
- Object
- Raygun::Middleware::RackExceptionInterceptor
- Defined in:
- lib/raygun/middleware/rack_exception_interceptor.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ RackExceptionInterceptor
constructor
A new instance of RackExceptionInterceptor.
Constructor Details
#initialize(app) ⇒ RackExceptionInterceptor
Returns a new instance of RackExceptionInterceptor.
5 6 7 |
# File 'lib/raygun/middleware/rack_exception_interceptor.rb', line 5 def initialize(app) @app = app end |
Instance Method Details
#call(env) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/raygun/middleware/rack_exception_interceptor.rb', line 9 def call(env) @app.call(env) rescue Exception => exception Raygun.track_exception(exception, env) if Raygun.configured? raise exception end |