summaryrefslogtreecommitdiffstats
path: root/openshift-storage-libs/openshiftstoragelibs/exceptions.py
blob: 64f187edffde6984be3f1823697885a9ebb260b1 (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.
    '''


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.
    '''


class NotSupportedException(Exception):
    '''
    Custom exception thrown when we do not support a particular feature in
    particular product version

    For example, pv resize is not supported in OCP version < 3.9
    '''


class CloudProviderError(Exception):
    '''
    Custom exception thrown when operation failed in cloud provider libraries.

    For example, unable to find a vm in vsphere client.
    '''