From f6a525ed85fa31d05c1450e936a2dd3d20a77be6 Mon Sep 17 00:00:00 2001 From: lijing Date: Fri, 11 Nov 2016 17:57:10 +0800 Subject: Extract kolla exceptions into a single exception.py file Change-Id: I03388360b6ac735d5a6f380a7956cd91ab449131 --- kolla/exception.py | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 kolla/exception.py (limited to 'kolla/exception.py') 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 -- cgit v1.2.3