Sha256: 64a2dde7ceea05dd3c14ef5cdda173226914cf8ea01de5f2fb65fa57b2707aff

Contents?: true

Size: 1.06 KB

Versions: 106

Compression:

Stored size: 1.06 KB

Contents

# frozen_string_literal: true

module RubyRabbitmqJanus
  module Errors
    module Janus
      # Define a super class for all errors in
      # Janus::Transactions::TransactionSessions
      class BaseTransactionSessions < BaseTransaction
        def initialize(message, level = :fatal)
          super "[Sessions] #{message}", level
        end
      end

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

        # Error for Janus::Transactions::TransactionSessions#connect
        class Connect < BaseTransactionSessions
          def initialize
            super 'Error for connect to RabbitMQ'
          end
        end

        # Error for Janus::Transactions::TransactionSessions#publish_message
        class PublishMessage < BaseTransactionSessions
          def initialize
            super 'Error for publishing message'
          end
        end
      end
    end
  end
end

Version data entries

106 entries across 106 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-2.6.0.pre.227 lib/rrj/errors/janus/transactions/session.rb
ruby_rabbitmq_janus-2.6.0.pre.226 lib/rrj/errors/janus/transactions/session.rb
ruby_rabbitmq_janus-2.5.1.pre.217 lib/rrj/errors/janus/transactions/session.rb
ruby_rabbitmq_janus-2.5.1 lib/rrj/errors/janus/transactions/session.rb
ruby_rabbitmq_janus-2.5.1.pre.215 lib/rrj/errors/janus/transactions/session.rb
ruby_rabbitmq_janus-2.5.0 lib/rrj/errors/janus/transactions/session.rb
ruby_rabbitmq_janus-2.5.0.pre.213 lib/rrj/errors/janus/transactions/session.rb
ruby_rabbitmq_janus-2.5.0.pre.210 lib/rrj/errors/janus/transactions/session.rb
ruby_rabbitmq_janus-2.5.0.pre.209 lib/rrj/errors/janus/transactions/session.rb
ruby_rabbitmq_janus-2.4.0.pre.208 lib/rrj/errors/janus/transactions/session.rb
ruby_rabbitmq_janus-2.3.1.pre.201 lib/rrj/errors/janus/transactions/session.rb
ruby_rabbitmq_janus-2.3.1.pre.198 lib/rrj/errors/janus/transactions/session.rb
ruby_rabbitmq_janus-2.3.0.pre.197 lib/rrj/errors/janus/transactions/session.rb
ruby_rabbitmq_janus-2.3.0.pre.196 lib/rrj/errors/janus/transactions/session.rb
ruby_rabbitmq_janus-2.3.0 lib/rrj/errors/janus/transactions/session.rb
ruby_rabbitmq_janus-2.3.0.pre.194 lib/rrj/errors/janus/transactions/session.rb
ruby_rabbitmq_janus-2.3.0.pre.192 lib/rrj/errors/janus/transactions/session.rb
ruby_rabbitmq_janus-2.3.0.pre.170 lib/rrj/errors/janus/transactions/session.rb
ruby_rabbitmq_janus-2.2.2 lib/rrj/errors/janus/transactions/session.rb
ruby_rabbitmq_janus-2.2.1 lib/rrj/errors/janus/transactions/session.rb