instance method
exception_if_present
Ruby on Rails 8.0.4
Since v8.0.4 PrivateAvailable in: v8.0.4 v8.1.2
Signature
exception_if_present()
No documentation comment.
Source
# File actionpack/lib/action_dispatch/testing/assertions/response.rb, line 104
def exception_if_present
return "" unless ex = @request&.env&.[]("action_dispatch.exception")
"\n\nException while processing request: #{Minitest::UnexpectedError.new(ex).message}\n"
end
Defined in actionpack/lib/action_dispatch/testing/assertions/response.rb line 104
· View on GitHub
· Improve this page
· Find usages on GitHub