mirror of
https://github.com/Telecominfraproject/oopt-gnpy.git
synced 2025-11-01 10:38:10 +00:00
Create a SpectrumError(Exception)
Create an exception in case of an error due to spectrum problem eg if spectrum request is not correct if values are not correct. use it instead of exit Signed-off-by: EstherLerouzic <esther.lerouzic@orange.com>
This commit is contained in:
@@ -23,3 +23,6 @@ class ServiceError(Exception):
|
||||
|
||||
class DisjunctionError(ServiceError):
|
||||
'''Disjunction of user-provided request can not be satisfied'''
|
||||
|
||||
class SpectrumError(Exception):
|
||||
'''Spectrum errors of the program'''
|
||||
Reference in New Issue
Block a user