blob: 8c9427e16e3b5fb0c2cbb203f5c3176f533db277 [file] [log] [blame]
Wei-Yu Chen49950b92021-11-08 19:19:18 +08001"""
2Copyright 2020 The Magma Authors.
3
4This source code is licensed under the BSD-style license found in the
5LICENSE file in the root directory of this source tree.
6
7Unless required by applicable law or agreed to in writing, software
8distributed under the License is distributed on an "AS IS" BASIS,
9WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10See the License for the specific language governing permissions and
11limitations under the License.
12"""
13
14
15class ConfigurationError(Exception):
16 """ Indicates that the eNodeB could not be configured correctly. """
17 pass
18
19
20class Tr069Error(Exception):
21 pass
22
23
24class IncorrectDeviceHandlerError(Exception):
25 """ Indicates that we're using the wrong data model for configuration. """
26
27 def __init__(self, device_name: str):
28 """
29 device_name: What device we actually are dealing with
30 """
31 super().__init__()
32 self.device_name = device_name
33
34
35class UnrecognizedEnodebError(Exception):
36 """
37 Indicates that the Access Gateway does not recognize the eNodeB.
38 The Access Gateway will not interact with the eNodeB in question.
39 """
40 pass