class method
self.new
Ruby on Rails 3.2.22.5
Since v3.0.20 Last seen in v4.0.13Signature
self.new(exception)
No documentation comment.
Parameters
-
exceptionreq
Source
# File activesupport/lib/active_support/testing/isolation.rb, line 8
def initialize(exception)
@message = "caught #{exception.class.name}: #{exception.message}"
@backtrace = exception.backtrace
end
Defined in activesupport/lib/active_support/testing/isolation.rb line 8
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Testing::RemoteError