Sha256: 95fb2cfd05ffa8e708cc7890e712181d8f40657adbc009b6f4d69d5b5346ed60

Contents?: true

Size: 1.07 KB

Versions: 19

Compression:

Stored size: 1.07 KB

Contents

# frozen_string_literal: true

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

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

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

        class TestCorrelation < RubyRabbitmqJanus::Errors::Rabbit::BasePublish
          def initialize(message, propertie)
            super "Response correlation ID mismatch (#{message} != #{propertie})", :fatal
          end
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-2.5.1.pre.217 lib/rrj/errors/rabbit/publish/publisher.rb
ruby_rabbitmq_janus-2.5.1 lib/rrj/errors/rabbit/publish/publisher.rb
ruby_rabbitmq_janus-2.5.1.pre.215 lib/rrj/errors/rabbit/publish/publisher.rb
ruby_rabbitmq_janus-2.5.0 lib/rrj/errors/rabbit/publish/publisher.rb
ruby_rabbitmq_janus-2.5.0.pre.213 lib/rrj/errors/rabbit/publish/publisher.rb
ruby_rabbitmq_janus-2.5.0.pre.210 lib/rrj/errors/rabbit/publish/publisher.rb
ruby_rabbitmq_janus-2.5.0.pre.209 lib/rrj/errors/rabbit/publish/publisher.rb
ruby_rabbitmq_janus-2.4.0.pre.208 lib/rrj/errors/rabbit/publish/publisher.rb
ruby_rabbitmq_janus-2.3.1.pre.201 lib/rrj/errors/rabbit/publish/publisher.rb
ruby_rabbitmq_janus-2.3.1.pre.198 lib/rrj/errors/rabbit/publish/publisher.rb
ruby_rabbitmq_janus-2.3.0.pre.197 lib/rrj/errors/rabbit/publish/publisher.rb
ruby_rabbitmq_janus-2.3.0.pre.196 lib/rrj/errors/rabbit/publish/publisher.rb
ruby_rabbitmq_janus-2.3.0 lib/rrj/errors/rabbit/publish/publisher.rb
ruby_rabbitmq_janus-2.3.0.pre.194 lib/rrj/errors/rabbit/publish/publisher.rb
ruby_rabbitmq_janus-2.3.0.pre.192 lib/rrj/errors/rabbit/publish/publisher.rb
ruby_rabbitmq_janus-2.3.0.pre.170 lib/rrj/errors/rabbit/publish/publisher.rb
ruby_rabbitmq_janus-2.2.2 lib/rrj/errors/rabbit/publish/publisher.rb
ruby_rabbitmq_janus-2.2.1 lib/rrj/errors/rabbit/publish/publisher.rb
ruby_rabbitmq_janus-2.2.1.pre.181 lib/rrj/errors/rabbit/publish/publisher.rb