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.
10 11 12 13 |
# File 'activesupport/lib/active_support/testing/isolation.rb', line 10 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
8 9 10 |
# File 'activesupport/lib/active_support/testing/isolation.rb', line 8 def backtrace @backtrace end |
#message ⇒ Object (readonly)
Returns the value of attribute message
8 9 10 |
# File 'activesupport/lib/active_support/testing/isolation.rb', line 8 def @message end |