lib/rack/exceptions.rb
# applications are typically configured with a single global instance
# of the exceptions reporter. use a thread local to store the current rack
# so different threads don't see the same request info
applications are typically configured with a single global instance
of the exceptions reporter. use a thread local to store the current rack
so different threads don't see the same request info
applications are typically configured with a single global instance of the exceptions reporter . use a thread local to store the current rack so different threads don ' t see the same request info
def call(env)
      Thread.current[:exception_rack_env] = env
      begin
        response = @app.call(env)
      rescue Exception => e
        backend.notify(e)
        raise
      end
      framework_exception = framework_exception(env)
      if framework_exception
        backend.notify(framework_exception)
      end
      response
    ensure
      backend.clear_context
      Thread.current[:exception_rack_env] = nil
    end
def call ( env ) Thread . current [ :exception_rack_env ] = env begin response = @app . call ( env ) rescue Exception => e backend . notify ( e ) raise end framework_exception = framework_exception ( env ) if framework_exception backend . notify ( framework_exception ) end response ensure backend . clear_context Thread . current [ :exception_rack_env ] = nil end
applications are typically configured with a single global instance
of the exceptions reporter.
applications are typically configured with a single global instance of the exceptions reporter .
env
<not_specific>