Sha256: 7fe575b9b3d9658e63561bb1b657b7f3953f17bff30ae9e49ad237c21b8f0053

Contents?: true

Size: 1.29 KB

Versions: 9

Compression:

Stored size: 1.29 KB

Contents

# frozen_string_literal: true

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

module RubyRabbitmqJanus
  module Errors
    # Define errors for keepalive class
    class Keepalive < Janus
      # Write a message with a tag keepalive in log
      def initialize(message)
        super "[Keepalive] #{message}"
      end
    end

    # Define error for session_return method
    class KeepaliveSessionReturn < Keepalive
      # Initialize a error message
      def initialize(message)
        super "Fixnum Session return failed : #{message}"
      end
    end

    # Define error for create_session method
    class KeepaliveCreateSession < Keepalive
      # Initialize a error message
      def initialize(message)
        super "Session create error : #{message}"
      end
    end

    # Define a error in loop_session method
    class KeepaliveLoopSession < Keepalive
      # Initialize a error message
      def initialize(message)
        super "Loop session failed (session will die) : #{message}"
      end
    end

    # Define a error in message keepalive created
    class KeepaliveMessage < Keepalive
      # Initialize a error message
      def initialize(message)
        super "Keepalive message failed : #{message}"
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-2.0.0.pre.108 lib/rrj/errors/janus/janus_processus_keepalive.rb
ruby_rabbitmq_janus-2.0.0 lib/rrj/errors/janus/janus_processus_keepalive.rb
ruby_rabbitmq_janus-2.0.0.pre.106 lib/rrj/errors/janus/janus_processus_keepalive.rb
ruby_rabbitmq_janus-2.0.0.pre.101 lib/rrj/errors/janus/janus_processus_keepalive.rb
ruby_rabbitmq_janus-2.0.0.pre.100 lib/rrj/errors/janus/janus_processus_keepalive.rb
ruby_rabbitmq_janus-2.0.0.pre.97 lib/rrj/errors/janus/janus_processus_keepalive.rb
ruby_rabbitmq_janus-2.0.0.pre.96 lib/rrj/errors/janus/janus_processus_keepalive.rb
ruby_rabbitmq_janus-2.0.0.pre.95 lib/rrj/errors/janus/janus_processus_keepalive.rb
ruby_rabbitmq_janus-2.0.0.pre.42 lib/rrj/errors/janus/janus_processus_keepalive.rb