Imported Upstream version 1.51.0
[platform/upstream/boost.git] / tools / build / src / exceptions.py
1 # Copyright Pedro Ferreira 2005. Distributed under the Boost
2 # Software License, Version 1.0. (See accompanying
3 # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
4
5 # TODO: add more exception types?
6
7 class BaseException (Exception):
8     def __init__ (self, message = ''): Exception.__init__ (self, message)
9
10 class UserError (BaseException):
11     def __init__ (self, message = ''): BaseException.__init__ (self, message)
12
13 class FeatureConflict (BaseException):
14     def __init__ (self, message = ''): BaseException.__init__ (self, message)
15
16 class InvalidSource (BaseException):
17     def __init__ (self, message = ''): BaseException.__init__ (self, message)
18
19 class InvalidFeature (BaseException):
20     def __init__ (self, message = ''): BaseException.__init__ (self, message)
21
22 class InvalidProperty (BaseException):
23     def __init__ (self, message = ''): BaseException.__init__ (self, message)
24
25 class InvalidValue (BaseException):
26     def __init__ (self, message = ''): BaseException.__init__ (self, message)
27
28 class InvalidAttribute (BaseException):
29     def __init__ (self, message = ''): BaseException.__init__ (self, message)
30
31 class AlreadyDefined (BaseException):
32     def __init__ (self, message = ''): BaseException.__init__ (self, message)
33
34 class IllegalOperation (BaseException):
35     def __init__ (self, message = ''): BaseException.__init__ (self, message)
36
37 class Recursion (BaseException):
38     def __init__ (self, message = ''): BaseException.__init__ (self, message)
39
40 class NoBestMatchingAlternative (BaseException):
41     def __init__ (self, message = ''): BaseException.__init__ (self, message)
42
43 class NoAction (BaseException):
44     def __init__ (self, message = ''): BaseException.__init__ (self, message)