class method
self.new
Ruby on Rails 7.1.6
Since v3.2.22.5Signature
self.new(backtrace_cleaner, exception)
No documentation comment.
Parameters
-
backtrace_cleanerreq -
exceptionreq
Source
# File actionpack/lib/action_dispatch/middleware/exception_wrapper.rb, line 48
def initialize(backtrace_cleaner, exception)
@backtrace_cleaner = backtrace_cleaner
@exception_class_name = exception.class.name
@wrapped_causes = wrapped_causes_for(exception, backtrace_cleaner)
@exception = exception
if exception.is_a?(SyntaxError)
@exception = ActiveSupport::SyntaxErrorProxy.new(exception)
end
@backtrace = build_backtrace
end
Defined in actionpack/lib/action_dispatch/middleware/exception_wrapper.rb line 48
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::ExceptionWrapper