Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 1 | """ |
| 2 | Copyright 2020 The Magma Authors. |
| 3 | |
| 4 | This source code is licensed under the BSD-style license found in the |
| 5 | LICENSE file in the root directory of this source tree. |
| 6 | |
| 7 | Unless required by applicable law or agreed to in writing, software |
| 8 | distributed under the License is distributed on an "AS IS" BASIS, |
| 9 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 10 | See the License for the specific language governing permissions and |
| 11 | limitations under the License. |
| 12 | """ |
| 13 | |
| 14 | |
| 15 | class ConfigurationError(Exception): |
| 16 | """ Indicates that the eNodeB could not be configured correctly. """ |
| 17 | pass |
| 18 | |
| 19 | |
| 20 | class Tr069Error(Exception): |
| 21 | pass |
| 22 | |
| 23 | |
| 24 | class 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 | |
| 35 | class 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 |