Sha256: 09c3fe0b2d5b87d3228839c9109a5fca520eb06c2e7e445b2ff7850894bb1bb4

Contents?: true

Size: 965 Bytes

Versions: 62

Compression:

Stored size: 965 Bytes

Contents

# frozen_string_literal: true

module RubyRabbitmqJanus
  module Errors
    module Rabbit
      module Publisher
        # Define a super class for all errors in
        # Rabbit::Publisher::Exclusive
        class BasePublishExclusive < BaseErrorPublisher
          def initialize(message, level = :fatal)
            super "[Exclusive] #{message}", level
          end
        end

        module Exclusive
          # Error for Rabbit::Publisher::Exclusive#initialize
          class Initialize < RubyRabbitmqJanus::Errors::Rabbit::Publisher::BasePublishExclusive
            def initialize
              super 'Error in initializer'
            end
          end

          # Error for Rabbit::Publisher::Exclusive#publish
          class Publish < RubyRabbitmqJanus::Errors::Rabbit::Publisher::BasePublishExclusive
            def initialize
              super 'Error for publish message'
            end
          end
        end
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-2.7.1.pre.274 lib/rrj/errors/rabbit/publisher/exclusive.rb
ruby_rabbitmq_janus-2.7.0.pre.272 lib/rrj/errors/rabbit/publisher/exclusive.rb
ruby_rabbitmq_janus-2.7.0 lib/rrj/errors/rabbit/publisher/exclusive.rb
ruby_rabbitmq_janus-2.7.0.pre.269 lib/rrj/errors/rabbit/publisher/exclusive.rb
ruby_rabbitmq_janus-2.7.0.pre.267 lib/rrj/errors/rabbit/publisher/exclusive.rb
ruby_rabbitmq_janus-2.6.0 lib/rrj/errors/rabbit/publisher/exclusive.rb
ruby_rabbitmq_janus-2.6.0.pre.263 lib/rrj/errors/rabbit/publisher/exclusive.rb
ruby_rabbitmq_janus-2.6.0.pre.261 lib/rrj/errors/rabbit/publisher/exclusive.rb
ruby_rabbitmq_janus-2.6.0.pre.260 lib/rrj/errors/rabbit/publisher/exclusive.rb
ruby_rabbitmq_janus-2.6.0.pre.259 lib/rrj/errors/rabbit/publisher/exclusive.rb
ruby_rabbitmq_janus-2.6.0.pre.258 lib/rrj/errors/rabbit/publisher/exclusive.rb
ruby_rabbitmq_janus-2.6.0.pre.247 lib/rrj/errors/rabbit/publisher/exclusive.rb
ruby_rabbitmq_janus-2.6.0.pre.246 lib/rrj/errors/rabbit/publisher/exclusive.rb
ruby_rabbitmq_janus-2.6.0.pre.244 lib/rrj/errors/rabbit/publisher/exclusive.rb
ruby_rabbitmq_janus-2.6.0.pre.240 lib/rrj/errors/rabbit/publisher/exclusive.rb
ruby_rabbitmq_janus-2.6.0.pre.239 lib/rrj/errors/rabbit/publisher/exclusive.rb
ruby_rabbitmq_janus-2.6.0.pre.238 lib/rrj/errors/rabbit/publisher/exclusive.rb
ruby_rabbitmq_janus-2.6.0.pre.233 lib/rrj/errors/rabbit/publisher/exclusive.rb
ruby_rabbitmq_janus-2.6.0.pre.229 lib/rrj/errors/rabbit/publisher/exclusive.rb
ruby_rabbitmq_janus-2.6.0.pre.228 lib/rrj/errors/rabbit/publisher/exclusive.rb