Sha256: d13a0345a398ec2e1a432a12e23d00409f809c07eed4eb1b471baf11ea790037

Contents?: true

Size: 1.28 KB

Versions: 4

Compression:

Stored size: 1.28 KB

Contents

module Celluloid
  class Error < StandardError; end
  class Interruption < Exception; end
  class TimedOut < Celluloid::Interruption; end # Distinguished from `Timeout`
  class StillActive < Celluloid::Error; end
  class NotActive < Celluloid::Error; end
  class NotActorError < Celluloid::Error; end # Don't do Actor-like things outside Actor scope
  class DeadActorError < Celluloid::Error; end # Trying to do something to a dead actor
  class NotTaskError < Celluloid::Error; end # Asked to do task-related things outside a task
  class DeadTaskError < Celluloid::Error; end # Trying to resume a dead task
  class TaskTerminated < Celluloid::Interruption; end # Kill a running task after terminate
  class TaskTimeout < Celluloid::TimedOut; end # A timeout occured before the given request could complete
  class ConditionError < Celluloid::Error; end
  class AbortError < Celluloid::Error # The sender made an error, not the current actor
    attr_reader :cause
    def initialize(cause)
      @cause = cause
      super "caused by #{cause.inspect}: #{cause}"
    end
  end
  class ThreadLeak < Celluloid::Error; end
  module Feature
    module Requires
      class RubiniusOrJRuby < Celluloid::Error; end
      class Rubinius < Celluloid::Error; end
      class JRuby < Celluloid::Error; end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
celluloid-0.17.4 lib/celluloid/exceptions.rb
celluloid-0.18.0.pre lib/celluloid/exceptions.rb
celluloid-0.17.3 lib/celluloid/exceptions.rb
celluloid-0.17.2 lib/celluloid/exceptions.rb