diff options
Diffstat (limited to 'glustolibs-gluster/glustolibs/gluster/exceptions.py')
-rw-r--r-- | glustolibs-gluster/glustolibs/gluster/exceptions.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/exceptions.py b/glustolibs-gluster/glustolibs/gluster/exceptions.py new file mode 100644 index 000000000..71591bf7b --- /dev/null +++ b/glustolibs-gluster/glustolibs/gluster/exceptions.py @@ -0,0 +1,17 @@ +class ConfigError(Exception): + ''' + Custom exception thrown when there is an unrecoverable configuration error. + For example, a required configuration key is not found. + ''' + pass + + +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 canot be setup. + + ''' + pass |