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-3.0.0 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-3.0.0.pre.387 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-3.0.0.pre.385 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-3.0.0.pre.384 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-3.0.0.pre.382 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-3.0.0.pre.366 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-3.0.0.pre.364 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-3.0.0.pre.358 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-3.0.0.pre.354 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-3.0.0.pre.352 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-3.0.0.pre.351 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-3.0.0.pre.336 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-3.0.0.pre.335 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-3.0.0.pre.334 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-3.0.0.pre.330 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-3.0.0.pre.328 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-3.0.0.pre.327 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-2.7.2 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-2.7.2.pre.322 lib/rrj/errors/rabbit/publisher/base.rb
ruby_rabbitmq_janus-2.7.2.pre.320 lib/rrj/errors/rabbit/publisher/base.rb