Exception: RSpec::Multicore::RemoteFailure

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rspec/multicore/reporter_bridge.rb

Overview

Represents a worker exception whose original class cannot be reconstructed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data, cause: nil, all_exceptions: []) ⇒ RemoteFailure

Returns a new instance of RemoteFailure.



21
22
23
24
25
26
27
# File 'lib/rspec/multicore/reporter_bridge.rb', line 21

def initialize(data, cause: nil, all_exceptions: [])
  @original_class_name = data.fetch(:class)
  @cause = cause
  @all_exceptions = all_exceptions
  super(data.fetch(:message))
  set_backtrace(data[:backtrace])
end

Instance Attribute Details

#all_exceptionsObject (readonly)

Returns the value of attribute all_exceptions.



19
20
21
# File 'lib/rspec/multicore/reporter_bridge.rb', line 19

def all_exceptions
  @all_exceptions
end

#causeObject (readonly)

Returns the value of attribute cause.



19
20
21
# File 'lib/rspec/multicore/reporter_bridge.rb', line 19

def cause
  @cause
end

#original_class_nameObject (readonly)

Returns the value of attribute original_class_name.



19
20
21
# File 'lib/rspec/multicore/reporter_bridge.rb', line 19

def original_class_name
  @original_class_name
end