Exception: Thespian::DeadActorError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Thespian::DeadActorError
- Defined in:
- lib/thespian/errors.rb
Instance Attribute Summary collapse
-
#actor ⇒ Object
readonly
The actor or host object that died.
-
#reason ⇒ Object
readonly
The exact exception that caused the actor to die.
Instance Method Summary collapse
-
#initialize(actor, exception) ⇒ DeadActorError
constructor
:nodoc:.
Constructor Details
#initialize(actor, exception) ⇒ DeadActorError
:nodoc:
10 11 12 13 14 |
# File 'lib/thespian/errors.rb', line 10 def initialize(actor, exception) #:nodoc: super(exception) @actor = actor @reason = exception end |
Instance Attribute Details
#actor ⇒ Object (readonly)
The actor or host object that died.
5 6 7 |
# File 'lib/thespian/errors.rb', line 5 def actor @actor end |
#reason ⇒ Object (readonly)
The exact exception that caused the actor to die.
8 9 10 |
# File 'lib/thespian/errors.rb', line 8 def reason @reason end |