Wei-Yu Chen | ad55cb8 | 2022-02-15 20:07:01 +0800 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: 2020 The Magma Authors. |
| 2 | # SPDX-FileCopyrightText: 2022 Open Networking Foundation <support@opennetworking.org> |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 5 | |
| 6 | |
| 7 | class ConfigurationError(Exception): |
| 8 | """ Indicates that the eNodeB could not be configured correctly. """ |
| 9 | pass |
| 10 | |
| 11 | |
| 12 | class Tr069Error(Exception): |
| 13 | pass |
| 14 | |
| 15 | |
| 16 | class IncorrectDeviceHandlerError(Exception): |
| 17 | """ Indicates that we're using the wrong data model for configuration. """ |
| 18 | |
| 19 | def __init__(self, device_name: str): |
| 20 | """ |
| 21 | device_name: What device we actually are dealing with |
| 22 | """ |
| 23 | super().__init__() |
| 24 | self.device_name = device_name |
| 25 | |
| 26 | |
| 27 | class UnrecognizedEnodebError(Exception): |
| 28 | """ |
| 29 | Indicates that the Access Gateway does not recognize the eNodeB. |
| 30 | The Access Gateway will not interact with the eNodeB in question. |
| 31 | """ |
| 32 | pass |