summaryrefslogtreecommitdiffstats
path: root/openshift-storage-libs/openshiftstoragelibs/exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'openshift-storage-libs/openshiftstoragelibs/exceptions.py')
-rw-r--r--openshift-storage-libs/openshiftstoragelibs/exceptions.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/openshift-storage-libs/openshiftstoragelibs/exceptions.py b/openshift-storage-libs/openshiftstoragelibs/exceptions.py
new file mode 100644
index 00000000..44daee12
--- /dev/null
+++ b/openshift-storage-libs/openshiftstoragelibs/exceptions.py
@@ -0,0 +1,23 @@
+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.
+ '''
+
+
+class NotSupportedException(Exception):
+ '''
+ Custom exception thrown when we do not support a particular feature in
+ particular product version
+
+ For example, pv resize is not supported in OCP version < 3.9
+ '''