Sha256: a81554a75377a7930cf32360e9ff5c526d83cedf94d88197e14bf17d0f59f22d

Contents?: true

Size: 1.39 KB

Versions: 95

Compression:

Stored size: 1.39 KB

Contents

# frozen_string_literal: true

module RubyRabbitmqJanus
  module Errors
    module Janus
      # Define a super class for all error in Janus::Message
      class BaseMessage < BaseJanus
        def initialize(message, level)
          super "[Message]#{message}", level
        end
      end

      module Message
        # Error for Janus::Message#initialize
        class Initializer < RubyRabbitmqJanus::Errors::Janus::BaseMessage
          def initialize
            super 'Error in initalizer'
          end
        end

        # Error for Janus::Message#to_json
        class ToJson < RubyRabbitmqJanus::Errors::Janus::BaseMessage
          def initialize
            super 'Error transform to json'
          end
        end

        # Error for Janus::Message#to_nice_json
        class ToNiceJson < RubyRabbitmqJanus::Errors::Janus::BaseMessage
          def initialize
            super 'Error transform to nice json'
          end
        end

        # Error for Janus::Message#to_hash
        class ToHash < RubyRabbitmqJanus::Errors::Janus::BaseMessage
          def initialize
            super 'Error transform to hash'
          end
        end

        # Error for Janus::Message#correlation
        class Correlation < RubyRabbitmqJanus::Errors::Janus::BaseMessage
          def initialize
            super 'Error return correlation information'
          end
        end
      end
    end
  end
end

Version data entries

95 entries across 95 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-2.3.1.pre.198 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-2.3.0.pre.197 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-2.3.0.pre.196 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-2.3.0 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-2.3.0.pre.194 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-2.3.0.pre.192 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-2.3.0.pre.170 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-2.2.2 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-2.2.1 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-2.2.1.pre.181 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-2.2.1.pre.180 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-2.2.0.pre.179 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-2.2.0 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-2.2.0.pre.177 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-2.2.0.pre.173 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-2.2.0.pre.170 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-2.2.0.pre.168 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-2.2.0.pre.167 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-2.2.0.pre.166 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-2.2.0.pre.165 lib/rrj/errors/janus/messages/message.rb