Diff of /pathaia/graphs/errors.py [000000] .. [7823dd]

Switch to unified view

a b/pathaia/graphs/errors.py
1
class Error(Exception):
2
    """
3
    Base of custom errors.
4
    **********************
5
    """
6
7
    pass
8
9
10
class InvalidNodeProps(Error):
11
    """
12
    Raise when trying to access unknown level.
13
    *********************************************
14
    """
15
16
    pass
17
18
19
class InvalidEdgeProps(Error):
20
    """
21
    Raise when trying to access unknown level.
22
    *********************************************
23
    """
24
25
    pass
26
27
28
class UndefinedParenthood(Error):
29
    """
30
    Raise when trying to access unknown level.
31
    *********************************************
32
    """
33
34
    pass
35
36
37
class UndefinedChildhood(Error):
38
    """
39
    Raise when trying to access unknown level.
40
    *********************************************
41
    """
42
43
    pass
44
45
46
class InvalidTree(Error):
47
    """
48
    Raise when parents and children do no match.
49
    *********************************************
50
    """
51
52
53
class UnknownNodeProperty(Error):
54
    """
55
    Raise when trying to access unknown level.
56
    *********************************************
57
    """
58
59
    pass
60
61
62
class InvalidNodeId(Error):
63
    """
64
    Raise when trying to access unknown level.
65
    *********************************************
66
    """
67
68
    pass
69
70
71
class UnrelatedNode(Error):
72
    """
73
    Raise when trying to access unknown level.
74
    *********************************************
75
    """
76
77
    pass
78
79
80
class UnreachableAncestor(Error):
81
    """
82
    Raise when trying to access unknown level.
83
    *********************************************
84
    """
85
86
    pass