lib/ting_yun/support/exception.rb in tingyun_rpm-1.1.4.2 vs lib/ting_yun/support/exception.rb in tingyun_rpm-1.2.0
- old
+ new
@@ -4,40 +4,15 @@
#
module TingYun
module Support
module Exception
- # An exception that is thrown by the server if the agent license is invalid.
- class LicenseException < StandardError;
- end
- # An exception that is thrown by the agent, if server['nbs.agent_enable']==false.
- class AgentEnableException <StandardError;
- end
-
# An exception that is thrown by the server, drop the data.
class UnKnownServerException < StandardError;
end
- # An exception that forces an agent to stop reporting until its mongrel is restarted.
- class ForceDisconnectException < StandardError;
- end
-
- # An exception that forces an agent to restart.
- class ForceRestartException < StandardError;
- end
-
- # An exception that forces an agent to restart.
- class InvalidDataException < StandardError;
- end
-
- class ExpiredConfigurationException < StandardError;
- end
-
- # An exception that forces an agent to restart initAgentApp.
- class InvalidDataTokenException < StandardError;
- end
# Used to blow out of a periodic task without logging a an error, such as for routine
# failures.
class ServerConnectionException < StandardError;
end
@@ -52,19 +27,12 @@
# An error while serializing data for the collector
class SerializationError < StandardError;
end
- class BackgroundLoadingError < StandardError;
+ class AppSessionKeyError < StandardError;
end
-
- class UnsupportedMediaType < StandardError
- end
- # Used to wrap errors reported to agent by the collector
- class CollectorError < 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)
@@ -72,8 +40,9 @@
end
end
class InternalServerError < StandardError
end
+
end
end
end
\ No newline at end of file