summaryrefslogtreecommitdiffstats
path: root/cns-libs/cnslibs/common/exceptions.py
blob: 38fb27e63a0084f6c975d70eea18bccedc53bf1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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.

    '''