summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/glustolibs/gluster/exceptions.py
blob: 42ee48441a63fa16e4c51482916284b4a2b52d1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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


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