Exception: RSpec::Multicore::RemoteFailure
- Inherits:
-
StandardError
- Object
- StandardError
- RSpec::Multicore::RemoteFailure
- Defined in:
- lib/rspec/multicore/reporter_bridge.rb
Overview
Represents a worker exception whose original class cannot be reconstructed.
Instance Attribute Summary collapse
-
#all_exceptions ⇒ Object
readonly
Returns the value of attribute all_exceptions.
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
-
#original_class_name ⇒ Object
readonly
Returns the value of attribute original_class_name.
Instance Method Summary collapse
-
#initialize(data, cause: nil, all_exceptions: []) ⇒ RemoteFailure
constructor
A new instance of RemoteFailure.
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_exceptions ⇒ Object (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 |
#cause ⇒ Object (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_name ⇒ Object (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 |