Files
oopt-gnpy/gnpy/core/exceptions.py
AndreaDAmico 9a7f94a391 cleaning: minor changes and specific numpy imports in utils and science_utils.
Change-Id: I57cd9075dd0a523a90131fbd8747519cf6554900
2020-11-19 14:57:57 +00:00

38 lines
841 B
Python

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
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"""