Sha256: 922e0a1c3a46f5dce345d062e1010025eb507c87cd3f05d8e641d7bf98891fb3

Contents?: true

Size: 1.43 KB

Versions: 5

Compression:

Stored size: 1.43 KB

Contents

# encoding: utf-8
# This file is distributed under Ting Yun's license terms.

#

module TingYun
  module Support
    module Exception

      # An exception that is thrown by the server, drop the data.
      class UnKnownServerException < StandardError;
      end

      # Used to blow out of a periodic task without logging a an error, such as for routine
      # failures.
      class ServerConnectionException < StandardError;
      end

      # When a post is either too large or poorly formatted we should
      # drop it and not try to resend
      class UnrecoverableServerException < ServerConnectionException;
      end

      # An unrecoverable client-side error that prevents the agent from continuing
      class UnrecoverableAgentException < ServerConnectionException;
      end

      # An error while serializing data for the collector
      class SerializationError < StandardError;
      end

      class AppSessionKeyError < StandardError;
      end
      #This is the base class for all errors that we want to record , It provides the
      # standard support text at the front of the message, and is used for flagging
      # agent errors when checking queue limits.
      class InternalAgentError < StandardError
        def initialize(msg=nil)
          super("Ruby agent internal error. Please contact support referencing this error.\n #{msg}")
        end
      end

      class InternalServerError < StandardError
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tingyun_rpm-1.4.2 lib/ting_yun/support/exception.rb
tingyun_rpm-1.4.1 lib/ting_yun/support/exception.rb
tingyun_rpm-1.3.1 lib/ting_yun/support/exception.rb
tingyun_rpm-1.3.0 lib/ting_yun/support/exception.rb
tingyun_rpm-1.2.0 lib/ting_yun/support/exception.rb