From ca1e43804fa1fb5029ec9bb7a770e9a511d81ad0 Mon Sep 17 00:00:00 2001 From: Olivier Vielpeau Date: Mon, 10 Jul 2017 14:25:07 -0400 Subject: [PATCH] [py] Add `CheckException` subclass Quite a few `integrations-core` checks use this class of exceptions for some of the exceptions they raise. It makes sense to keep it, it encourages some level of exception granularity in the checks. --- pkg/collector/dist/checks/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/collector/dist/checks/__init__.py b/pkg/collector/dist/checks/__init__.py index 38645e460c5b..034c79c7ede1 100644 --- a/pkg/collector/dist/checks/__init__.py +++ b/pkg/collector/dist/checks/__init__.py @@ -22,6 +22,9 @@ def emit(self, record): rootLogger = logging.getLogger() rootLogger.addHandler(AgentLogHandler()) +class CheckException(Exception): + pass + class AgentCheck(object): RATE = "rate"