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-3.0.0.pre.336 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-3.0.0.pre.335 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-3.0.0.pre.334 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-3.0.0.pre.330 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-3.0.0.pre.328 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-3.0.0.pre.327 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-2.7.2 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-2.7.2.pre.322 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-2.7.2.pre.320 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-2.7.2.pre.319 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-2.7.2.pre.318 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-2.7.2.pre.317 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-2.7.2.pre.316 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-2.7.2.pre.315 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-2.7.2.pre.314 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-2.7.2.pre.312 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-2.7.2.pre.310 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-2.7.2.pre.309 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-2.7.2.pre.308 lib/rrj/errors/janus/messages/message.rb
ruby_rabbitmq_janus-2.7.2.pre.307 lib/rrj/errors/janus/messages/message.rb