Exception: Celluloid::AbortError
- Inherits:
-
StandardError
- Object
- StandardError
- Celluloid::AbortError
- Defined in:
- lib/celluloid/actor.rb
Overview
The caller made an error, not the current actor
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
Instance Method Summary collapse
-
#initialize(cause) ⇒ AbortError
constructor
A new instance of AbortError.
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
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
10 11 12 |
# File 'lib/celluloid/actor.rb', line 10 def cause @cause end |