mirror of
https://github.com/Telecominfraproject/oopt-gnpy.git
synced 2025-10-31 18:18:00 +00:00
Signed-off-by: EstherLerouzic <esther.lerouzic@orange.com> Change-Id: Ifdd6a566fda74c5b7d417f9d61c51d4d3da07bfd
43 lines
1.0 KiB
Python
43 lines
1.0 KiB
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
# gnpy.core.exceptions: Exceptions thrown by other gnpy modules
|
|
# Copyright (C) 2025 Telecom Infra Project and GNPy contributors
|
|
# see AUTHORS.rst for a list of contributors
|
|
|
|
"""
|
|
gnpy.core.exceptions
|
|
====================
|
|
|
|
Exceptions thrown by other gnpy modules
|
|
"""
|
|
|
|
|
|
class ConfigurationError(Exception):
|
|
"""User-provided configuration contains an error"""
|
|
|
|
|
|
class EquipmentConfigError(ConfigurationError):
|
|
"""Incomplete or wrong configuration within the equipment library"""
|
|
|
|
|
|
class NetworkTopologyError(ConfigurationError):
|
|
"""Topology of user-provided network is wrong"""
|
|
|
|
|
|
class ServiceError(Exception):
|
|
"""Service of user-provided request is wrong"""
|
|
|
|
|
|
class DisjunctionError(ServiceError):
|
|
"""Disjunction of user-provided request can not be satisfied"""
|
|
|
|
|
|
class SpectrumError(Exception):
|
|
"""Spectrum errors of the program"""
|
|
|
|
|
|
class ParametersError(ConfigurationError):
|
|
"""Incomplete or wrong configurations within parameters json"""
|