instance method
render_exception
Ruby on Rails 3.0.20
Since v3.0.20 PrivateSignature
render_exception(env, exception)
No documentation comment.
Parameters
-
envreq -
exceptionreq
Source
# File actionpack/lib/action_dispatch/middleware/show_exceptions.rb, line 63
def render_exception(env, exception)
log_error(exception)
request = Request.new(env)
if @consider_all_requests_local || request.local?
rescue_action_locally(request, exception)
else
rescue_action_in_public(exception)
end
rescue Exception => failsafe_error
$stderr.puts "Error during failsafe response: #{failsafe_error}\n #{failsafe_error.backtrace * "\n "}"
FAILSAFE_RESPONSE
end
Defined in actionpack/lib/action_dispatch/middleware/show_exceptions.rb line 63
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::ShowExceptions