aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests/utils/exceptions.py
blob: f80fc09211cc6010dae4c741fa3d8a590d565fac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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."""