summaryrefslogtreecommitdiffstats
path: root/cns-libs/cnslibs/common/exceptions.py
diff options
context:
space:
mode:
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.
+
+ '''