online bottlenecks soak throughtputs
[releng.git] / modules / opnfv / utils / OPNFVExceptions.py
1 #!/usr/bin/env python
2
3 # Copyright (c) 2016 Orange and others.
4 #
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # This class defines Python OPNFV exceptions
11 #
12
13
14 class OPNFVException(Exception):
15     def __call__(self, *args):
16         return self.__class__(*(self.args + args))
17
18
19 # ************************************
20 # Generic
21 # ************************************
22 class OPNFVSUTNotReachable(OPNFVException):
23     """Target System Under Test is not reachable"""
24     pass
25
26
27 class OPNFVCiExecutionError(OPNFVException):
28     """Error occurs during CI exection"""
29     pass
30
31
32 class TestDashboardError(OPNFVException):
33     """Impossible to report results to dashboard"""
34     pass
35
36
37 class TestReportingError(OPNFVException):
38     """Impossible to report results to reporting"""
39     pass
40
41
42 # ************************************
43 # Exceptions related to test DB
44 # ************************************
45 class TestDbNotReachable(OPNFVException):
46     """Test database is not reachable"""
47     pass
48
49
50 class UnknownScenario(OPNFVException):
51     """Test scenario is unknown"""
52     pass
53
54
55 class UnknownPod(OPNFVException):
56     """Test POD is unknown"""
57     pass
58
59
60 class UnknownProject(OPNFVException):
61     """Project is unknown"""
62     pass
63
64
65 class UnknownTestCase(OPNFVException):
66     """Test case is unknown"""
67     pass
68
69
70 class UnknownVersion(OPNFVException):
71     """Version is unknown"""
72     pass
73
74
75 class UnknownInstaller(OPNFVException):
76     """Installer is not supported"""
77     pass
78
79
80 # *******************
81 # Test project errors
82 # *******************
83 class FunctestExecutionError(OPNFVException):
84     """Internal Functest error"""
85     pass
86
87
88 class YardstickExecutionError(OPNFVException):
89     """Internal Yardstick error"""
90     pass
91
92
93 # **********************************
94 # Errors related to Feature projects
95 # **********************************
96 class TestCaseNotRunnable(OPNFVException):
97     """test case incompatible with SUT, scenario, installer"""
98     pass
99
100
101 class FeatureTestIntegrationError(OPNFVException):
102     """Impossible to integrate Feature test"""
103     pass
104
105
106 class FeatureTestExecutionError(OPNFVException):
107     """Error during Feature test execution"""
108     pass
109
110
111 # *********************************
112 # Errors related to VNF on boarding
113 # *********************************
114 class VNFTestNotRunnable(OPNFVException):
115     """VNF test is not compatible with SUT, scenario, installer"""
116     pass
117
118
119 class VNFIntegrationError(OPNFVException):
120     """Impossible to integrate the VNF test"""
121     pass
122
123
124 class VNFExecutionError(OPNFVException):
125     """Error during VNF test execution"""
126     pass