diff options
author | hari gowtham <hgowtham> | 2018-01-31 10:15:13 +0530 |
---|---|---|
committer | Nigel Babu <nigelb@redhat.com> | 2018-02-02 10:15:15 +0000 |
commit | 896389e4b529367021dcd90e7e3a1d1a2b1f006a (patch) | |
tree | 6d76a5537fa611d3545963e03f0387a37c441e8e /glustolibs-gluster/glustolibs/gluster/exceptions.py | |
parent | 94822dbb06d4f1a54bcd46c501e1116113192775 (diff) |
quota: lib to check if hard and soft limit are exceed.
This is a library to check if quota' hard and soft limit are
exceeded from the output of the quota list xml command.
Change-Id: Ie02ab9fcbf2aa2d248e0cb6385ab3d3f0554dec0
Signed-off-by: hari gowtham <hgowtham>
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 |