Exception: Celluloid::AbortError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/celluloid/actor.rb

Overview

The caller made an error, not the current actor

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cause) ⇒ AbortError

Returns a new instance of AbortError.



12
13
14
15
# File 'lib/celluloid/actor.rb', line 12

def initialize(cause)
  @cause = cause
  super "caused by #{cause.inspect}: #{cause.to_s}"
end

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause.



10
11
12
# File 'lib/celluloid/actor.rb', line 10

def cause
  @cause
end