instance method original_exception

Ruby on Rails 5.2.8.1

Since v3.2.22.5 Last seen in v5.2.8.1 Private — implementation detail, not part of the public API

Available in: v3.2.22.5 v4.0.13 v4.1.16 v4.2.9 v5.2.8.1

Signature

original_exception(exception)

No documentation comment.

Parameters

exception req
Source
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 106
      def original_exception(exception)
        if @@rescue_responses.has_key?(exception.cause.class.name)
          exception.cause
        else
          exception
        end
      end

Defined in actionpack/lib/action_dispatch/middleware/exception_wrapper.rb line 106 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionDispatch::ExceptionWrapper

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close