diff options
Diffstat (limited to 'glustolibs-gluster/glustolibs/gluster/exceptions.py')
-rw-r--r-- | glustolibs-gluster/glustolibs/gluster/exceptions.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/exceptions.py b/glustolibs-gluster/glustolibs/gluster/exceptions.py index 71591bf7b..42ee48441 100644 --- a/glustolibs-gluster/glustolibs/gluster/exceptions.py +++ b/glustolibs-gluster/glustolibs/gluster/exceptions.py @@ -15,3 +15,17 @@ class ExecutionError(Exception): ''' pass + + +class ExecutionParseError(Exception): + ''' + Custom exception thrown when parsing a command executed by Glusto + results in an unexpected error. + + For example, the output of a command when has to be parsed, can have three + states. First, the output was as expected. Second, didn't get the expected + ouput after the parsing result and Third, didn't get the expected result as + the command itself failed. + + ''' + pass |