Sha256: db577bcec9d3866e84e9191cd1801bb9ec2d9e540dc345c4bac9187e628331a4

Contents?: true

Size: 1.13 KB

Versions: 54

Compression:

Stored size: 1.13 KB

Contents

# frozen_string_literal: true

# :reek:IrresponsibleModule

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

        module Base
          # Error for Rabbit::BaseEvent#initialize
          class Initialize < RubyRabbitmqJanus::Errors::Rabbit::Publisher::BaseErrorPublisher
            def initialize
              super 'Error in initializer'
            end
          end

          class Publish < RubyRabbitmqJanus::Errors::Rabbit::Publisher::BaseErrorPublisher
            def initialize
              super 'Error for publishing message'
            end
          end

          class TestCorrelation < RubyRabbitmqJanus::Errors::Rabbit::Publisher::BaseErrorPublisher
            def initialize(message, propertie)
              super "Correlation doesn't equal (msg: #{message}) != (prp: #{propertie})"
            end
          end
        end
      end
    end
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-2.7.2.pre.319 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-2.7.2.pre.318 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-2.7.2.pre.317 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-2.7.2.pre.316 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-2.7.2.pre.315 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-2.7.2.pre.314 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-2.7.2.pre.312 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-2.7.2.pre.310 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-2.7.2.pre.309 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-2.7.2.pre.308 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-2.7.2.pre.307 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-2.7.2.pre.306 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-2.7.2.pre.305 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-2.7.2.pre.302 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-2.7.2.pre.297 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-2.7.2.pre.296 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-2.7.2.pre.286 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-2.7.2.pre.285 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-2.7.2.pre.284 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-2.7.1 lib/rrj/errors/rabbit/publisher/base.rb