Sha256: cac44233170eb61b1e46731500eb31bbaedd8ff9016e302f8a2881899cfa5f4d

Contents?: true

Size: 997 Bytes

Versions: 62

Compression:

Stored size: 997 Bytes

Contents

# frozen_string_literal: true

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

        module PublishNonExclusive
          # Error for Rabbit::Publisher::NonExclusive#initialize
          class Initialize < RubyRabbitmqJanus::Errors::Rabbit::Publisher::BasePublishNonExclusive
            def initialize
              super 'Error in initializer'
            end
          end

          # Error for Rabbit::Publisher::NonExclusive#publish
          class Publish < RubyRabbitmqJanus::Errors::Rabbit::Publisher::BasePublishNonExclusive
            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-3.0.0 lib/rrj/errors/rabbit/publisher/non_exclusive.rb
ruby_rabbitmq_janus-3.0.0.pre.387 lib/rrj/errors/rabbit/publisher/non_exclusive.rb
ruby_rabbitmq_janus-3.0.0.pre.385 lib/rrj/errors/rabbit/publisher/non_exclusive.rb
ruby_rabbitmq_janus-3.0.0.pre.384 lib/rrj/errors/rabbit/publisher/non_exclusive.rb
ruby_rabbitmq_janus-3.0.0.pre.382 lib/rrj/errors/rabbit/publisher/non_exclusive.rb
ruby_rabbitmq_janus-3.0.0.pre.366 lib/rrj/errors/rabbit/publisher/non_exclusive.rb
ruby_rabbitmq_janus-3.0.0.pre.364 lib/rrj/errors/rabbit/publisher/non_exclusive.rb
ruby_rabbitmq_janus-3.0.0.pre.358 lib/rrj/errors/rabbit/publisher/non_exclusive.rb
ruby_rabbitmq_janus-3.0.0.pre.354 lib/rrj/errors/rabbit/publisher/non_exclusive.rb
ruby_rabbitmq_janus-3.0.0.pre.352 lib/rrj/errors/rabbit/publisher/non_exclusive.rb
ruby_rabbitmq_janus-3.0.0.pre.351 lib/rrj/errors/rabbit/publisher/non_exclusive.rb
ruby_rabbitmq_janus-3.0.0.pre.336 lib/rrj/errors/rabbit/publisher/non_exclusive.rb
ruby_rabbitmq_janus-3.0.0.pre.335 lib/rrj/errors/rabbit/publisher/non_exclusive.rb
ruby_rabbitmq_janus-3.0.0.pre.334 lib/rrj/errors/rabbit/publisher/non_exclusive.rb
ruby_rabbitmq_janus-3.0.0.pre.330 lib/rrj/errors/rabbit/publisher/non_exclusive.rb
ruby_rabbitmq_janus-3.0.0.pre.328 lib/rrj/errors/rabbit/publisher/non_exclusive.rb
ruby_rabbitmq_janus-3.0.0.pre.327 lib/rrj/errors/rabbit/publisher/non_exclusive.rb
ruby_rabbitmq_janus-2.7.2 lib/rrj/errors/rabbit/publisher/non_exclusive.rb
ruby_rabbitmq_janus-2.7.2.pre.322 lib/rrj/errors/rabbit/publisher/non_exclusive.rb
ruby_rabbitmq_janus-2.7.2.pre.320 lib/rrj/errors/rabbit/publisher/non_exclusive.rb