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