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.3.1.pre.198 lib/rrj/errors/janus/responses/standard.rb
ruby_rabbitmq_janus-2.3.0.pre.197 lib/rrj/errors/janus/responses/standard.rb
ruby_rabbitmq_janus-2.3.0.pre.196 lib/rrj/errors/janus/responses/standard.rb
ruby_rabbitmq_janus-2.3.0 lib/rrj/errors/janus/responses/standard.rb
ruby_rabbitmq_janus-2.3.0.pre.194 lib/rrj/errors/janus/responses/standard.rb
ruby_rabbitmq_janus-2.3.0.pre.192 lib/rrj/errors/janus/responses/standard.rb
ruby_rabbitmq_janus-2.3.0.pre.170 lib/rrj/errors/janus/responses/standard.rb
ruby_rabbitmq_janus-2.2.2 lib/rrj/errors/janus/responses/standard.rb
ruby_rabbitmq_janus-2.2.1 lib/rrj/errors/janus/responses/standard.rb
ruby_rabbitmq_janus-2.2.1.pre.181 lib/rrj/errors/janus/responses/standard.rb
ruby_rabbitmq_janus-2.2.1.pre.180 lib/rrj/errors/janus/responses/standard.rb
ruby_rabbitmq_janus-2.2.0.pre.179 lib/rrj/errors/janus/responses/standard.rb
ruby_rabbitmq_janus-2.2.0 lib/rrj/errors/janus/responses/standard.rb
ruby_rabbitmq_janus-2.2.0.pre.177 lib/rrj/errors/janus/responses/standard.rb