Sha256: 6764e7fe8d48ebe5fc6018eb2f7534d009eef064ebb12d0b7974b8999840f974

Contents?: true

Size: 968 Bytes

Versions: 11

Compression:

Stored size: 968 Bytes

Contents

# frozen_string_literal: true

# @author VAILLANT Jeremy <jeremy.vaillant@dazzl.tv>
# @see RubyRabbitmqJanus::Janus::Keepalive Keepalive thread

module RubyRabbitmqJanus
  module Errors
    module Janus
      # Define a super class for all error in Janus::Concurency::Keepalive
      class BaseKeepalive < RubyRabbitmqJanus::Errors::Janus::BaseConcurency
        def initialize(message)
          super "[Keepalive] #{message}"
        end
      end

      module Keepalive
        # Error for Janus::Concurency::Keepalive#initialize
        class Initializer < RubyRabbitmqJanus::Errors::Janus::BaseKeepalive
          def initializer
            super 'Error keepalive initializer'
          end
        end

        # Error for Janus::Concurency::Keepalive#session
        class Session < RubyRabbitmqJanus::Errors::Janus::BaseKeepalive
          def initializer
            super 'Error return session number'
          end
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-2.1.1 lib/rrj/errors/janus/processus/keepalive.rb
ruby_rabbitmq_janus-2.1.1.pre.139 lib/rrj/errors/janus/processus/keepalive.rb
ruby_rabbitmq_janus-2.1.0 lib/rrj/errors/janus/processus/keepalive.rb
ruby_rabbitmq_janus-2.1.0.pre.137 lib/rrj/errors/janus/processus/keepalive.rb
ruby_rabbitmq_janus-2.1.0.pre.136 lib/rrj/errors/janus/processus/keepalive.rb
ruby_rabbitmq_janus-2.1.0.pre.135 lib/rrj/errors/janus/processus/keepalive.rb
ruby_rabbitmq_janus-2.1.0.pre.132 lib/rrj/errors/janus/processus/keepalive.rb
ruby_rabbitmq_janus-2.1.0.pre.131 lib/rrj/errors/janus/processus/keepalive.rb
ruby_rabbitmq_janus-2.1.0.pre.130 lib/rrj/errors/janus/processus/keepalive.rb
ruby_rabbitmq_janus-2.1.0.pre.129 lib/rrj/errors/janus/processus/keepalive.rb
ruby_rabbitmq_janus-2.1.0.pre.128 lib/rrj/errors/janus/processus/keepalive.rb