[973924]: / qiita_ware / exceptions.py

Download this file

46 lines (30 with data), 1.1 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
#!/usr/bin/env python
# -----------------------------------------------------------------------------
# Copyright (c) 2014--, The Qiita Development Team.
#
# Distributed under the terms of the BSD 3-clause License.
#
# The full license is in the file LICENSE, distributed with this software.
# -----------------------------------------------------------------------------
from qiita_core.exceptions import QiitaError
class QiitaWareError(QiitaError):
"""Base clase for all Qiita-ware exceptions"""
pass
class UserDoesNotExistsError(QiitaWareError):
"""Error used when a user does not exist"""
pass
class AnalysisDoesNotExistsError(QiitaWareError):
"""Error used when an analysis does not exist"""
pass
class JobDoesNotExistsError(QiitaWareError):
"""Error used when a job does not exist"""
pass
class StudyDoesNotExistsError(QiitaWareError):
"""Error used when a study does not exist"""
pass
class ComputeError(QiitaWareError):
"""A compute error happened"""
pass
class EBISubmissionError(QiitaWareError):
"""Error used when EBI cannot be submitted"""
pass