Sha256: b7b73fa573da1ece0028cfb6d44f424968118f000c66decc59b8589c9110dadb

Contents?: true

Size: 619 Bytes

Versions: 1

Compression:

Stored size: 619 Bytes

Contents

module Celluloid
  # Base class of all Celluloid errors
  Error = Class.new(StandardError)

  # Don't do Actor-like things outside Actor scope
  NotActorError = Class.new(Celluloid::Error)

  # Trying to do something to a dead actor
  DeadActorError = Class.new(Celluloid::Error)

  # A timeout occured before the given request could complete
  TimeoutError = Class.new(Celluloid::Error)

  # The sender made an error, not the current actor
  class AbortError < Celluloid::Error
    attr_reader :cause

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
celluloid-0.17.0 lib/celluloid/exceptions.rb