Add the module containing the define exceptions
[bertos.git] / wizard / DefineException.py
1 #!/usr/bin/env python
2 # encoding: utf-8
3 #
4 # Copyright 2009 Develer S.r.l. (http://www.develer.com/)
5 # All rights reserved.
6 #
7 # $Id:$
8 #
9 # Author: Lorenzo Berni <duplo@develer.com>
10 #
11
12
13 class DefineException(Exception):
14     """
15     Exception raised when an error occurs parsing the module informations.
16     """
17     def __init__(self, value):
18         self.parameter = value
19     
20     def __str__(self):
21         return repr(self.parameter)
22
23 class ModuleDefineException(DefineException):
24     """
25     Exception raised when an error occurs parsing the module informations.
26     """
27     def __init__(self, value):
28         super(ModuleDefineException, self).__init__(value)
29
30 class EnumDefineException(DefineException):
31     """
32     Exception raised when an error occurs parsing the enum informations.
33     """
34     def __init__(self, value):
35         super(EnumDefineException, self).__init__(value)
36
37 class ConfigurationDefineException(DefineException):
38     """
39     Exception raised when an error occurs parsing the configuration parameter informations.
40     """
41     def __init__(self, value):
42         super(ConfigurationDefineException, self).__init__(value)