From 566ff6dc0331317e0d904a619b83dbea0ec20689 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Mon, 6 Sep 2021 16:10:14 +0200 Subject: [PATCH] New exceptions in lib/cr_tf/errors.py --- lib/cr_tf/errors.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/lib/cr_tf/errors.py b/lib/cr_tf/errors.py index cd26e34..1dda2c2 100644 --- a/lib/cr_tf/errors.py +++ b/lib/cr_tf/errors.py @@ -16,7 +16,7 @@ from fb_tools.config import ConfigError from .xlate import XLATOR -__version__ = '1.1.0' +__version__ = '1.2.0' _ = XLATOR.gettext ngettext = XLATOR.ngettext @@ -29,6 +29,20 @@ class TerraformObjectError(FbHandlerError): pass +# ============================================================================= +class TerraformHandlerError(TerraformObjectError): + """Exception because of handler errors.""" + + pass + + +# ============================================================================= +class TerraformVSphereError(TerraformObjectError): + """Exception because of VSphere configuration errors.""" + + pass + + # ============================================================================= class TerraformVmError(TerraformObjectError): """Exception class on errors evaluation VM definition for terraform.""" -- 2.39.5