mirror of
https://github.com/Telecominfraproject/oopt-gnpy.git
synced 2025-11-02 19:18:02 +00:00
This is a continuation from #319. The singleton-ish interface has not been changed yet. Change-Id: I93c8f1145561184f6e91f7e8f7debd3b48936205
33 lines
836 B
Python
33 lines
836 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'''
|
|
|