Add a DisjunctionError exception and use it

in case there is no possible disjoint path with the added constraints
(most of the time due to an inconsistant user request)

Signed-off-by: EstherLerouzic <esther.lerouzic@orange.com>
This commit is contained in:
EstherLerouzic
2019-09-13 19:07:51 +01:00
parent 66bdeb0e4d
commit b15c8c60ab
3 changed files with 9 additions and 3 deletions

View File

@@ -21,3 +21,5 @@ class NetworkTopologyError(ConfigurationError):
class ServiceError(Exception):
'''Service of user-provided request is wrong'''
class DisjunctionError(ServiceError):
'''Disjunction of user-provided request can not be satisfied'''