]> Frank Brehm's Git Trees - pixelpark/puppet-tools.git/commitdiff
Adding lib/dpx_puppettools/errors.py
authorFrank Brehm <frank.brehm@pixelpark.com>
Fri, 3 Feb 2023 16:40:05 +0000 (17:40 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Fri, 3 Feb 2023 16:40:05 +0000 (17:40 +0100)
lib/dpx_puppettools/errors.py [new file with mode: 0644]

diff --git a/lib/dpx_puppettools/errors.py b/lib/dpx_puppettools/errors.py
new file mode 100644 (file)
index 0000000..5b010b8
--- /dev/null
@@ -0,0 +1,63 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+"""
+@author: Frank Brehm
+@contact: frank.brehm@pixelpark.com
+@copyright: © 2023 by Frank Brehm, Berlin
+@summary: The module for some common used exception classes
+"""
+from __future__ import absolute_import
+
+# Standard modules
+
+# Third party modules
+
+# Own modules
+from fb_tools.errors import FbAppError
+
+__version__ = '0.1.0'
+
+
+# =============================================================================
+class PuppetToolsError(FbAppError):
+    """
+    Base error class useable by all descendand objects.
+    """
+
+    pass
+
+
+# =============================================================================
+class PuppetToolsAppError(PuppetToolsError):
+    """
+    Base exception class for all aplication errors in this module.
+    """
+
+    pass
+
+
+# =============================================================================
+class BaseHookError(PuppetToolsAppError):
+    """
+    Base error class useable by all Web applications.
+    """
+
+    pass
+
+
+# =============================================================================
+class UncriticalHookError(BaseHookError):
+    """
+    Class for uncritical errors, which could and should be caught.
+    """
+
+    pass
+
+
+# =============================================================================
+if __name__ == "__main__":
+
+    pass
+
+# =============================================================================
+# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 list