Exception: ActiveSupport::Testing::RemoteError
- Defined in:
- activesupport/lib/active_support/testing/isolation.rb
Instance Attribute Summary collapse
-
#backtrace ⇒ Object
readonly
Returns the value of attribute backtrace.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(exception) ⇒ RemoteError
constructor
A new instance of RemoteError.
Constructor Details
#initialize(exception) ⇒ RemoteError
Returns a new instance of RemoteError.
8 9 10 11 |
# File 'activesupport/lib/active_support/testing/isolation.rb', line 8 def initialize(exception) @message = "caught #{exception.class.name}: #{exception.}" @backtrace = exception.backtrace end |
Instance Attribute Details
#backtrace ⇒ Object (readonly)
Returns the value of attribute backtrace
6 7 8 |
# File 'activesupport/lib/active_support/testing/isolation.rb', line 6 def backtrace @backtrace end |
#message ⇒ Object (readonly)
Returns the value of attribute message
6 7 8 |
# File 'activesupport/lib/active_support/testing/isolation.rb', line 6 def @message end |