method

exception_if_present

exception_if_present()
private

No documentation available.

# 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