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.



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

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



6
7
8
# File 'activesupport/lib/active_support/testing/isolation.rb', line 6

def backtrace
  @backtrace
end

#messageObject (readonly)

Returns the value of attribute message



6
7
8
# File 'activesupport/lib/active_support/testing/isolation.rb', line 6

def message
  @message
end