Exception: Thespian::DeadActorError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/thespian/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#actorObject (readonly)

The actor or host object that died.



5
6
7
# File 'lib/thespian/errors.rb', line 5

def actor
  @actor
end

#reasonObject (readonly)

The exact exception that caused the actor to die.



8
9
10
# File 'lib/thespian/errors.rb', line 8

def reason
  @reason
end