[7823dd]: / pathaia / patches / errors.py

Download this file

66 lines (41 with data), 1.0 kB

 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# coding: utf8
"""
A module to handle patchification errors.
Enable catching of level and filter accesses.
"""
class Error(Exception):
"""
Base of custom errors.
**********************
"""
pass
class UnknownLevelError(Error):
"""
Raise when trying to access unknown level.
*********************************************
"""
pass
class UnknownFilterError(Error):
"""
Raise when trying to use an unknown filter.
*********************************************
"""
pass
class PathaiaWarning(Warning):
"""
Base of custom warnings.
************************
"""
pass
class HasNoDataFolder(PathaiaWarning):
"""
Raise when trying to read mrxs with no data folder.
***************************************************
"""
pass
class InvalidArgument(Error):
"""
Raise when trying to read mrxs with no data folder.
***************************************************
"""
pass