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:
EstherLerouzic
2019-09-05 17:00:12 +01:00
parent 42ba3eb98d
commit 2f1ab9cc50
2 changed files with 7 additions and 2 deletions

View File

@@ -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'''