Exception: ActiveSupport::Testing::RemoteError

Inherits:
StandardError
  • Object
show all
Defined in:
activesupport/lib/active_support/testing/isolation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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.message}"
  @backtrace = exception.backtrace
end

Instance Attribute Details

#backtraceObject (readonly)

Returns the value of attribute backtrace



8
9
10
# File 'activesupport/lib/active_support/testing/isolation.rb', line 8

def backtrace
  @backtrace
end

#messageObject (readonly)

Returns the value of attribute message



8
9
10
# File 'activesupport/lib/active_support/testing/isolation.rb', line 8

def message
  @message
end