Exception: Celluloid::AbortError

Inherits:
Error
  • Object
show all
Defined in:
lib/celluloid/exceptions.rb

Overview

The sender 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


16
17
18
19
# File 'lib/celluloid/exceptions.rb', line 16

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

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause


15
16
17
# File 'lib/celluloid/exceptions.rb', line 15

def cause
  @cause
end