Sha256: 3a5b3a62da4c49dc5d0698b5676ab031aefe0828bc601ea706ca35ad239ea5aa

Contents?: true

Size: 870 Bytes

Versions: 44

Compression:

Stored size: 870 Bytes

Contents

# frozen_string_literal: true

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

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

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

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-2.2.0.pre.179 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.2.0 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.2.0.pre.177 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.2.0.pre.173 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.2.0.pre.170 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.2.0.pre.168 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.2.0.pre.167 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.2.0.pre.166 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.2.0.pre.165 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.2.0.pre.164 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.2.0.pre.161 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.2.0.pre.159 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.2.0.pre.42 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.1.1 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.1.1.pre.139 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.1.0 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.1.0.pre.137 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.1.0.pre.136 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.1.0.pre.135 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.1.0.pre.132 lib/rrj/errors/rabbit/publish/admin.rb