instance method
render_exception
Ruby on Rails 5.0.7.2
Since v3.2.22.5 Private — implementation detail, not part of the public APISignature
render_exception(request, exception)
No documentation comment.
Parameters
-
requestreq -
exceptionreq
Source
# File actionpack/lib/action_dispatch/middleware/debug_exceptions.rb, line 64
def render_exception(request, exception)
backtrace_cleaner = request.get_header('action_dispatch.backtrace_cleaner')
wrapper = ExceptionWrapper.new(backtrace_cleaner, exception)
log_error(request, wrapper)
if request.get_header('action_dispatch.show_detailed_exceptions')
case @response_format
when :api
render_for_api_application(request, wrapper)
when :default
render_for_default_application(request, wrapper)
end
else
raise exception
end
end
Defined in actionpack/lib/action_dispatch/middleware/debug_exceptions.rb line 64
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::DebugExceptions