a b/pathaia/datasets/errors.py
1
# coding: utf8
2
"""
3
A module to handle datasets errors.
4
5
Enable catching of level and filter accesses.
6
"""
7
8
9
class Error(Exception):
10
    """
11
    Base of custom errors.
12
13
    **********************
14
    """
15
16
    pass
17
18
19
class UnknownSplitModeError(Error):
20
    """
21
    Raise when trying to split a dataset with an unknown option.
22
23
    *********************************************************
24
    """
25
26
    pass
27
28
29
class InvalidDatasetError(Error):
30
    """
31
    Raise when trying to perform operation on a dataset with bad properties.
32
33
    ************************************************************************
34
    """
35
36
    pass
37
38
39
class MissingArgumentError(Error):
40
    """
41
    Raise when trying to perform operation on a dataset with bad properties.
42
43
    ************************************************************************
44
    """
45
46
    pass
47
48
49
class InvalidSplitError(Error):
50
    """
51
    Raise when trying to perform operation on a dataset with bad properties.
52
53
    ************************************************************************
54
    """
55
56
    pass
57
58
59
class TagNotFoundError(Error):
60
    """
61
    Raise when trying to reach a class not present in the dataset.
62
63
    ************************************************************************
64
    """
65
66
    pass