summaryrefslogtreecommitdiffstats
path: root/cns-libs/cnslibs/common/exceptions.py
diff options
context:
space:
mode:
authorArthy Loganathan <aloganat@redhat.com>2017-11-28 01:42:05 +0530
committerArthy Loganathan <aloganat@redhat.com>2017-12-08 18:28:32 +0530
commitce81e4adc238fe41f2a031b4f75c2f6f88448e94 (patch)
tree0cb0b7b3f82e412d7fc200dbbe888e4fd217faf0 /cns-libs/cnslibs/common/exceptions.py
parent46cbb93cb1458484795d114bbf826a77e117e299 (diff)
Heketi library functions for topology, volume operation,
HeketiBaseClass and initial set of heketi volume testcases Change-Id: Ib700cc9ffc4bf510affdbb45710c5b27c6c7ce44 Signed-off-by: Arthy Loganathan <aloganat@redhat.com>
Diffstat (limited to 'cns-libs/cnslibs/common/exceptions.py')
-rw-r--r--cns-libs/cnslibs/common/exceptions.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/cns-libs/cnslibs/common/exceptions.py b/cns-libs/cnslibs/common/exceptions.py
new file mode 100644
index 00000000..38fb27e6
--- /dev/null
+++ b/cns-libs/cnslibs/common/exceptions.py
@@ -0,0 +1,15 @@
+class ConfigError(Exception):
+ '''
+ Custom exception thrown when there is an unrecoverable configuration error.
+ For example, a required configuration key is not found.
+ '''
+
+
+class ExecutionError(Exception):
+ '''
+ Custom exception thrown when a command executed by Glusto results in an
+ unrecoverable error.
+
+ For example, all hosts are not in peer state or a volume cannot be setup.
+
+ '''