From c519f51c9a071f5b4871c1fe5e761f4129ba456c Mon Sep 17 00:00:00 2001 From: Evgeniy L Date: Thu, 31 Dec 2015 11:46:14 +0300 Subject: [PATCH] Add exceptions --- bareon_dynamic_allocator/errors.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 bareon_dynamic_allocator/errors.py diff --git a/bareon_dynamic_allocator/errors.py b/bareon_dynamic_allocator/errors.py new file mode 100644 index 0000000..818862d --- /dev/null +++ b/bareon_dynamic_allocator/errors.py @@ -0,0 +1,20 @@ +# Copyright 2015 Mirantis, Inc. +# +# 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 then +# License for the specific language governing permissions and limitations +# under the License. + +class BareonDynamicAllocator(Exception): + pass + + +class NoSolutionFound(BareonDynamicAllocator): + pass