-
Notifications
You must be signed in to change notification settings - Fork 0
/
exceptions.py
32 lines (23 loc) · 870 Bytes
/
exceptions.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# SPDX-FileCopyrightText: 2020 The Magma Authors.
# SPDX-FileCopyrightText: 2022 Open Networking Foundation <support@opennetworking.org>
#
# SPDX-License-Identifier: BSD-3-Clause
class ConfigurationError(Exception):
""" Indicates that the eNodeB could not be configured correctly. """
pass
class Tr069Error(Exception):
pass
class IncorrectDeviceHandlerError(Exception):
""" Indicates that we're using the wrong data model for configuration. """
def __init__(self, device_name: str):
"""
device_name: What device we actually are dealing with
"""
super().__init__()
self.device_name = device_name
class UnrecognizedEnodebError(Exception):
"""
Indicates that the Access Gateway does not recognize the eNodeB.
The Access Gateway will not interact with the eNodeB in question.
"""
pass