class ActionDispatch::DebugExceptions
Public Instance Methods
render_exception(request, exception)
Also aliased as: render_exception_without_web_console
Alias for: render_exception_with_web_console
render_exception_with_web_console(request, exception)
click to toggle source
# File lib/web_console/extensions.rb, line 25 def render_exception_with_web_console(request, exception) render_exception_without_web_console(request, exception).tap do backtrace_cleaner = request.get_header('action_dispatch.backtrace_cleaner') error = ExceptionWrapper.new(backtrace_cleaner, exception).exception # Get the original exception if ExceptionWrapper decides to follow it. Thread.current[:__web_console_exception] = error # ActionView::Template::Error bypass ExceptionWrapper original # exception following. The backtrace in the view is generated from # reaching out to original_exception in the view. if error.is_a?(ActionView::Template::Error) Thread.current[:__web_console_exception] = error.cause end end end
Also aliased as: render_exception