instance method
exception_if_present
Ruby on Rails 8.0.5.1
Since v8.0.5.1 Private — implementation detail, not part of the public APISignature
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