method
call
rails latest stable - Class:
ActionDispatch::ShowExceptions
call(env)public
No documentation available.
# File actionpack/lib/action_dispatch/middleware/show_exceptions.rb, line 30
def call(env)
@app.call(env)
rescue Exception => exception
request = ActionDispatch::Request.new env
backtrace_cleaner = request.get_header("action_dispatch.backtrace_cleaner")
wrapper = ExceptionWrapper.new(backtrace_cleaner, exception)
if wrapper.show?(request)
render_exception(request, wrapper)
else
raise exception
end
end