Sha256: 10095f6f94edd58f2c2682cec0a6e548f4c8532a3075ee493961b0cb50794c9e

Contents?: true

Size: 611 Bytes

Versions: 9

Compression:

Stored size: 611 Bytes

Contents

# encoding: utf-8

module AMQP
  # Raised whenever an illegal operation is attempted.
  class Error < StandardError; end

  class IncompatibleOptionsError < Error
    def initialize(name, opts_1, opts_2)
      super("There is already an instance called #{name} with options #{opts_1.inspect}, you can't define the same instance with different options (#{opts_2.inspect})!")
    end
  end # IncompatibleOptionsError

  class ChannelClosedError < Error
    def initialize(instance)
      super("The channel #{instance.channel} was closed, you can't use it anymore!")
    end
  end # ChannelClosedError
end # AMQP

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
amqp-0.7.5 lib/amqp/exceptions.rb
amqp-0.7.4 lib/amqp/exceptions.rb
amqp-0.7.3 lib/amqp/exceptions.rb
amqp-0.7.2 lib/amqp/exceptions.rb
amqp-0.8.0.rc2 lib/amqp/exceptions.rb
amqp-0.8.0.rc1 lib/amqp/exceptions.rb
amqp-0.8.0.pre.beta1 lib/amqp/exceptions.rb
amqp-0.8.0.beta1 lib/amqp/exceptions.rb
amqp-0.7.1 lib/amqp/exceptions.rb