Sha256: c53b3d0216a7fa4084bc52e975b42f20a4b316f8b300947b274d447899d9fee8

Contents?: true

Size: 1.03 KB

Versions: 106

Compression:

Stored size: 1.03 KB

Contents

# frozen_string_literal: true

module RubyRabbitmqJanus
  module Errors
    module Janus
      # Define a super class for error in Janus::Transactions::TransactionAdmin
      class BaseTransactionAdmin < BaseTransaction
        def initialize(message, level = :fatal)
          super "[Admin] #{message}", level
        end
      end

      module TransactionAdmin
        # Error for Janus::Transactions::TransactionAdmin#initialize
        class Initialize < BaseTransactionAdmin
          def initialize
            super 'Error in initializer'
          end
        end

        # Error for Janus::Transactions::TransactionAdmin#connect
        class Connect < BaseTransactionAdmin
          def initialize
            super 'Error to connection RabbitMQ'
          end
        end

        # Error for Janus::Transactions::TransactionAdmin#publish_message
        class PublishMessage < BaseTransactionAdmin
          def initialize
            super 'Error for publishing message in RabbitMQ'
          end
        end
      end
    end
  end
end

Version data entries

106 entries across 106 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-2.7.1.pre.274 lib/rrj/errors/janus/transactions/admin.rb
ruby_rabbitmq_janus-2.7.0.pre.272 lib/rrj/errors/janus/transactions/admin.rb
ruby_rabbitmq_janus-2.7.0 lib/rrj/errors/janus/transactions/admin.rb
ruby_rabbitmq_janus-2.7.0.pre.269 lib/rrj/errors/janus/transactions/admin.rb
ruby_rabbitmq_janus-2.7.0.pre.267 lib/rrj/errors/janus/transactions/admin.rb
ruby_rabbitmq_janus-2.6.0 lib/rrj/errors/janus/transactions/admin.rb
ruby_rabbitmq_janus-2.6.0.pre.263 lib/rrj/errors/janus/transactions/admin.rb
ruby_rabbitmq_janus-2.6.0.pre.261 lib/rrj/errors/janus/transactions/admin.rb
ruby_rabbitmq_janus-2.6.0.pre.260 lib/rrj/errors/janus/transactions/admin.rb
ruby_rabbitmq_janus-2.6.0.pre.259 lib/rrj/errors/janus/transactions/admin.rb
ruby_rabbitmq_janus-2.6.0.pre.258 lib/rrj/errors/janus/transactions/admin.rb
ruby_rabbitmq_janus-2.6.0.pre.247 lib/rrj/errors/janus/transactions/admin.rb
ruby_rabbitmq_janus-2.6.0.pre.246 lib/rrj/errors/janus/transactions/admin.rb
ruby_rabbitmq_janus-2.6.0.pre.244 lib/rrj/errors/janus/transactions/admin.rb
ruby_rabbitmq_janus-2.6.0.pre.240 lib/rrj/errors/janus/transactions/admin.rb
ruby_rabbitmq_janus-2.6.0.pre.239 lib/rrj/errors/janus/transactions/admin.rb
ruby_rabbitmq_janus-2.6.0.pre.238 lib/rrj/errors/janus/transactions/admin.rb
ruby_rabbitmq_janus-2.6.0.pre.233 lib/rrj/errors/janus/transactions/admin.rb
ruby_rabbitmq_janus-2.6.0.pre.229 lib/rrj/errors/janus/transactions/admin.rb
ruby_rabbitmq_janus-2.6.0.pre.228 lib/rrj/errors/janus/transactions/admin.rb