This repository has been archived by the owner on Aug 15, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
errors.py
116 lines (80 loc) · 3.23 KB
/
errors.py
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# TmLibrary - TissueMAPS library for distibuted image analysis routines.
# Copyright (C) 2016 Markus D. Herrmann, University of Zurich and Robin Hafen
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
class NotSupportedError(Exception):
'''Error class that is raised when a feature is not supported by the program.
'''
class MetadataError(Exception):
'''Error class that is raised when a metadata element cannot be retrieved.
'''
class SubmissionError(Exception):
'''Error class that is raised when submitted jobs failed.
'''
class JobDescriptionError(OSError):
'''Error class that is raised when no job descriptor files are found.
'''
class CliArgError(Exception):
'''Error class that is raised when the value of an command line argument is
invalid.
'''
class RegexError(Exception):
'''Error class that is raised when a regular expression pattern didn't match.
'''
class StitchError(Exception):
'''Error class that is raised when an error occurs upon stitching of
images for the generation of a mosaic.
'''
class PyramidCreationError(Exception):
'''Error class that is raised when an error occurs upon creation of a pyramid
image, i.e. stitching of images together to a large overview image.
'''
class PipelineError(Exception):
'''Base class for jterator pipeline errors.
'''
class PipelineRunError(PipelineError):
'''Error class that is raised when an error occurs upon running a jterator
pipeline.
'''
class PipelineDescriptionError(PipelineError):
'''Error class that is raised when information in pipeline description is
missing or incorrect.
'''
class PipelineOSError(PipelineError):
'''Error class that is raised when pipeline related files do not exist
on disk.
'''
class WorkflowError(Exception):
'''Base class for workflow errors.
'''
class DataError(Exception):
'''Error class that is raised when data is not available.
'''
class WorkflowDescriptionError(WorkflowError):
'''Error class that is raised when the workflow is not correctly described.
'''
class WorkflowTransitionError(WorkflowError):
'''Error class that is raised when requirements for transition to the next
workflow stage or step are not fulfilled.
'''
class DataIntegrityError(Exception):
'''Error class that is raised when a dataset doesn't fullfile certain
requirements.
'''
class RegistryError(Exception):
'''Error class that is raised when a class is not registered.'''
class DataModelError(Exception):
'''Error class that is raised when a model class has attributes that are
not supported.
'''