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.5.1.pre.217 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.5.1 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.5.1.pre.215 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.5.0 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.5.0.pre.213 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.5.0.pre.210 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.5.0.pre.209 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.4.0.pre.208 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.3.1.pre.201 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.3.1.pre.198 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.3.0.pre.197 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.3.0.pre.196 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.3.0 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.3.0.pre.194 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.3.0.pre.192 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.3.0.pre.170 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.2.2 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.2.1 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.2.1.pre.181 lib/rrj/errors/rabbit/publish/admin.rb
ruby_rabbitmq_janus-2.2.1.pre.180 lib/rrj/errors/rabbit/publish/admin.rb