X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=a1%2Fexceptions.py;fp=a1%2Fexceptions.py;h=0000000000000000000000000000000000000000;hb=b7a743adb64d9a737e505d54fbdbe46777551d06;hp=b7d1244f2f03642fd3b5e45733b0e58b41b6d816;hpb=9f4fe4d725c9ad77ea1c2ab565ce5759e8a932a6;p=ric-plt%2Fa1.git diff --git a/a1/exceptions.py b/a1/exceptions.py deleted file mode 100644 index b7d1244..0000000 --- a/a1/exceptions.py +++ /dev/null @@ -1,47 +0,0 @@ -# ================================================================================== -# Copyright (c) 2019 Nokia -# Copyright (c) 2018-2019 AT&T Intellectual Property. -# -# 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. -# ================================================================================== -""" -Custom Exceptions -""" - - -class A1Error(Exception): - """A base class for A1 exceptions.""" - - def __init__(self, message): - # Call the base class constructor with the parameters it needs - super(A1Error, self).__init__(message) - - -class CantDeleteNonEmptyType(A1Error): - """tried to delete a type that isn't empty""" - - -class PolicyInstanceNotFound(A1Error): - """a policy instance cannot be found""" - - -class PolicyTypeNotFound(A1Error): - """a policy type instance cannot be found""" - - -class PolicyTypeAlreadyExists(A1Error): - """a policy type already exists and replace not supported at this time""" - - -class PolicyTypeIdMismatch(A1Error): - """a policy type request path ID differs from its body ID"""