Sha256: 0a707bb5fb76ed0ab33a33005557947f781f800f1b793db435c66bf7d84032a5

Contents?: true

Size: 1.35 KB

Versions: 74

Compression:

Stored size: 1.35 KB

Contents

# frozen_string_literal: true

# :reek:IrresponsibleModule

module RubyRabbitmqJanus
  module Errors
    module Janus
      # Define a super class for Janus::Responses::ResponseStandard
      class BaseResponseStandard < BaseResponse
        def initialize(message, level = :fatal)
          super "[Response]#{message}", level
        end
      end

      module ResponseStandard
        class Session < BaseResponseStandard
          def initialize
            super '[Session] Error reading response session (data_id in response)'
          end
        end

        class SessionId < BaseResponseStandard
          def initialize
            super '[SessionId] Error reading response session_id'
          end
        end

        class Plugin < BaseResponseStandard
          def initialize
            super '[Plugin] Error reading response plugin'
          end
        end

        class PluginData < BaseResponseStandard
          def initialize
            super '[PluginData] Error reading response plugin data'
          end
        end

        class Data < BaseResponseStandard
          def initialize
            super '[Data] Error reading response data'
          end
        end

        class SDP < BaseResponseStandard
          def initialize
            super '[SDP] Error reading SDP (jsep > sdp in response)'
          end
        end
      end
    end
  end
end

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-2.6.0.pre.247 lib/rrj/errors/janus/responses/standard.rb
ruby_rabbitmq_janus-2.6.0.pre.246 lib/rrj/errors/janus/responses/standard.rb
ruby_rabbitmq_janus-2.6.0.pre.244 lib/rrj/errors/janus/responses/standard.rb
ruby_rabbitmq_janus-2.6.0.pre.240 lib/rrj/errors/janus/responses/standard.rb
ruby_rabbitmq_janus-2.6.0.pre.239 lib/rrj/errors/janus/responses/standard.rb
ruby_rabbitmq_janus-2.6.0.pre.238 lib/rrj/errors/janus/responses/standard.rb
ruby_rabbitmq_janus-2.6.0.pre.233 lib/rrj/errors/janus/responses/standard.rb
ruby_rabbitmq_janus-2.6.0.pre.229 lib/rrj/errors/janus/responses/standard.rb
ruby_rabbitmq_janus-2.6.0.pre.228 lib/rrj/errors/janus/responses/standard.rb
ruby_rabbitmq_janus-2.6.0.pre.227 lib/rrj/errors/janus/responses/standard.rb
ruby_rabbitmq_janus-2.6.0.pre.226 lib/rrj/errors/janus/responses/standard.rb
ruby_rabbitmq_janus-2.5.1.pre.217 lib/rrj/errors/janus/responses/standard.rb
ruby_rabbitmq_janus-2.5.1 lib/rrj/errors/janus/responses/standard.rb
ruby_rabbitmq_janus-2.5.1.pre.215 lib/rrj/errors/janus/responses/standard.rb
ruby_rabbitmq_janus-2.5.0 lib/rrj/errors/janus/responses/standard.rb
ruby_rabbitmq_janus-2.5.0.pre.213 lib/rrj/errors/janus/responses/standard.rb
ruby_rabbitmq_janus-2.5.0.pre.210 lib/rrj/errors/janus/responses/standard.rb
ruby_rabbitmq_janus-2.5.0.pre.209 lib/rrj/errors/janus/responses/standard.rb
ruby_rabbitmq_janus-2.4.0.pre.208 lib/rrj/errors/janus/responses/standard.rb
ruby_rabbitmq_janus-2.3.1.pre.201 lib/rrj/errors/janus/responses/standard.rb