aboutsummaryrefslogtreecommitdiff
path: root/kolla/exception.py
diff options
context:
space:
mode:
authorlijing <lijing@gohighsec.com>2016-11-11 17:57:10 +0800
committerJeremy Liu <liujiong@gohighsec.com>2016-11-12 23:27:45 +0800
commitf6a525ed85fa31d05c1450e936a2dd3d20a77be6 (patch)
treede118120454b636d9eb1324c897955d8dc79eb34 /kolla/exception.py
parentdbb0ade6d1e314b21de380667b6228d64db87973 (diff)
downloadkolla-f6a525ed85fa31d05c1450e936a2dd3d20a77be6.tar.gz
kolla-f6a525ed85fa31d05c1450e936a2dd3d20a77be6.zip
Extract kolla exceptions into a single exception.py file
Change-Id: I03388360b6ac735d5a6f380a7956cd91ab449131
Diffstat (limited to 'kolla/exception.py')
-rw-r--r--kolla/exception.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/kolla/exception.py b/kolla/exception.py
new file mode 100644
index 000000000..a495ba844
--- /dev/null
+++ b/kolla/exception.py
@@ -0,0 +1,29 @@
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+"""Kolla exception subclasses"""
+
+
+class KollaDirNotFoundException(Exception):
+ pass
+
+
+class KollaUnknownBuildTypeException(Exception):
+ pass
+
+
+class KollaMismatchBaseTypeException(Exception):
+ pass
+
+
+class KollaRpmSetupUnknownConfig(Exception):
+ pass