Class: 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


18
19
20
21
# File 'lib/celluloid/exceptions.rb', line 18

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


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

def cause
  @cause
end