-
Notifications
You must be signed in to change notification settings - Fork 0
/
exception.py
32 lines (25 loc) · 934 Bytes
/
exception.py
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
'''
Created on Oct 20, 2015
@author: fabiomignini
'''
class InexistentLabelFound(Exception):
def __init__(self, message):
self.message = message
# Call the base class constructor with the parameters it needs
super(InexistentLabelFound, self).__init__(message)
def get_mess(self):
return self.message
class WrongNumberOfPorts(Exception):
def __init__(self, message):
self.message = message
# Call the base class constructor with the parameters it needs
super(WrongNumberOfPorts, self).__init__(message)
def get_mess(self):
return self.message
class NF_FGValidationError(Exception):
def __init__(self, message):
self.message = message
# Call the base class constructor with the parameters it needs
super(NF_FGValidationError, self).__init__(message)
def get_mess(self):
return self.message