|
a |
|
b/qiita_ware/exceptions.py |
|
|
1 |
#!/usr/bin/env python |
|
|
2 |
# ----------------------------------------------------------------------------- |
|
|
3 |
# Copyright (c) 2014--, The Qiita Development Team. |
|
|
4 |
# |
|
|
5 |
# Distributed under the terms of the BSD 3-clause License. |
|
|
6 |
# |
|
|
7 |
# The full license is in the file LICENSE, distributed with this software. |
|
|
8 |
# ----------------------------------------------------------------------------- |
|
|
9 |
|
|
|
10 |
from qiita_core.exceptions import QiitaError |
|
|
11 |
|
|
|
12 |
|
|
|
13 |
class QiitaWareError(QiitaError): |
|
|
14 |
"""Base clase for all Qiita-ware exceptions""" |
|
|
15 |
pass |
|
|
16 |
|
|
|
17 |
|
|
|
18 |
class UserDoesNotExistsError(QiitaWareError): |
|
|
19 |
"""Error used when a user does not exist""" |
|
|
20 |
pass |
|
|
21 |
|
|
|
22 |
|
|
|
23 |
class AnalysisDoesNotExistsError(QiitaWareError): |
|
|
24 |
"""Error used when an analysis does not exist""" |
|
|
25 |
pass |
|
|
26 |
|
|
|
27 |
|
|
|
28 |
class JobDoesNotExistsError(QiitaWareError): |
|
|
29 |
"""Error used when a job does not exist""" |
|
|
30 |
pass |
|
|
31 |
|
|
|
32 |
|
|
|
33 |
class StudyDoesNotExistsError(QiitaWareError): |
|
|
34 |
"""Error used when a study does not exist""" |
|
|
35 |
pass |
|
|
36 |
|
|
|
37 |
|
|
|
38 |
class ComputeError(QiitaWareError): |
|
|
39 |
"""A compute error happened""" |
|
|
40 |
pass |
|
|
41 |
|
|
|
42 |
|
|
|
43 |
class EBISubmissionError(QiitaWareError): |
|
|
44 |
"""Error used when EBI cannot be submitted""" |
|
|
45 |
pass |