diff options
Diffstat (limited to 'src/onaptests/utils/exceptions.py')
-rw-r--r-- | src/onaptests/utils/exceptions.py | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/src/onaptests/utils/exceptions.py b/src/onaptests/utils/exceptions.py new file mode 100644 index 0000000..f80fc09 --- /dev/null +++ b/src/onaptests/utils/exceptions.py @@ -0,0 +1,51 @@ +#!/usr/bin/env python + +# Copyright (c) 2018 Orange and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +"""Module to define pythonsdk-test exceptions.""" + +__author__ = ("Morgan Richomme <morgan.richomme@orange.com>") + + +class TestConfigurationException(Exception): + """Raise when configutation of the use cases is not complete or buggy.""" + + +class ServiceDistributionException(Exception): + """Service not properly distributed.""" + + +class ServiceInstantiateException(Exception): + """Service cannot be instantiate.""" + + +class ServiceCleanupException(Exception): + """Service cannot be cleaned.""" + + +class VnfInstantiateException(Exception): + """VNF cannot be instantiate.""" + + +class VnfCleanupException(Exception): + """VNF cannot be cleaned.""" + + +class VfModuleInstantiateException(Exception): + """VF Module cannot be instantiate.""" + + +class VfModuleCleanupException(Exception): + """VF Module cannot be instantiate.""" + + +class NetworkInstantiateException(Exception): + """Network cannot be instantiate.""" + + +class NetworkCleanupException(Exception): + """Network cannot be cleaned.""" |