method
new
v4.2.1 -
Show latest stable
- Class:
ActionDispatch::ExceptionWrapper
new(env, exception)public
No documentation available.
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 33
def initialize(env, exception)
@env = env
@exception = original_exception(exception)
expand_backtrace if exception.is_a?(SyntaxError) || exception.try(:original_exception).try(:is_a?, SyntaxError)
end