Sha256: ca3bdfe28c2faec951090a7a6bc8c2d63e5d95773ca2695cff3011a8a43e7249

Contents?: true

Size: 862 Bytes

Versions: 106

Compression:

Stored size: 862 Bytes

Contents

# frozen_string_literal: true

# @author VAILLANT Jeremy <jeremy.vaillant@dazzl.tv>

module RubyRabbitmqJanus
  module Errors
    # Define errors to message sending and response to janus
    module Janus
      # Define a super class for all error in Janus::MessageAdmin
      class BaseMessageAdmin < BaseMessage
        def initialize(message, level = :fatal)
          super "[Admin] #{message}", level
        end
      end

      module MessageAdmin
        # Error Janus::MessageAdmin#initialize
        class Initializer < BaseMessageAdmin
          def initialize
            super 'Error in initializer'
          end
        end

        # Error Janus::MessageAdmin#options
        class Options < BaseMessageAdmin
          def initialize
            super 'Return properties message admin failed'
          end
        end
      end
    end
  end
end

Version data entries

106 entries across 106 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-3.0.0 lib/rrj/errors/janus/messages/admin.rb
ruby_rabbitmq_janus-3.0.0.pre.387 lib/rrj/errors/janus/messages/admin.rb
ruby_rabbitmq_janus-3.0.0.pre.385 lib/rrj/errors/janus/messages/admin.rb
ruby_rabbitmq_janus-3.0.0.pre.384 lib/rrj/errors/janus/messages/admin.rb
ruby_rabbitmq_janus-3.0.0.pre.382 lib/rrj/errors/janus/messages/admin.rb
ruby_rabbitmq_janus-3.0.0.pre.366 lib/rrj/errors/janus/messages/admin.rb
ruby_rabbitmq_janus-3.0.0.pre.364 lib/rrj/errors/janus/messages/admin.rb
ruby_rabbitmq_janus-3.0.0.pre.358 lib/rrj/errors/janus/messages/admin.rb
ruby_rabbitmq_janus-3.0.0.pre.354 lib/rrj/errors/janus/messages/admin.rb
ruby_rabbitmq_janus-3.0.0.pre.352 lib/rrj/errors/janus/messages/admin.rb
ruby_rabbitmq_janus-3.0.0.pre.351 lib/rrj/errors/janus/messages/admin.rb
ruby_rabbitmq_janus-3.0.0.pre.336 lib/rrj/errors/janus/messages/admin.rb
ruby_rabbitmq_janus-3.0.0.pre.335 lib/rrj/errors/janus/messages/admin.rb
ruby_rabbitmq_janus-3.0.0.pre.334 lib/rrj/errors/janus/messages/admin.rb
ruby_rabbitmq_janus-3.0.0.pre.330 lib/rrj/errors/janus/messages/admin.rb
ruby_rabbitmq_janus-3.0.0.pre.328 lib/rrj/errors/janus/messages/admin.rb
ruby_rabbitmq_janus-3.0.0.pre.327 lib/rrj/errors/janus/messages/admin.rb
ruby_rabbitmq_janus-2.7.2 lib/rrj/errors/janus/messages/admin.rb
ruby_rabbitmq_janus-2.7.2.pre.322 lib/rrj/errors/janus/messages/admin.rb
ruby_rabbitmq_janus-2.7.2.pre.320 lib/rrj/errors/janus/messages/admin.rb