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)
5 # TODO: add more exception types?
7 class BaseException (Exception):
8 def __init__ (self, message = ''): Exception.__init__ (self, message)
10 class UserError (BaseException):
11 def __init__ (self, message = ''): BaseException.__init__ (self, message)
13 class FeatureConflict (BaseException):
14 def __init__ (self, message = ''): BaseException.__init__ (self, message)
16 class InvalidSource (BaseException):
17 def __init__ (self, message = ''): BaseException.__init__ (self, message)
19 class InvalidFeature (BaseException):
20 def __init__ (self, message = ''): BaseException.__init__ (self, message)
22 class InvalidProperty (BaseException):
23 def __init__ (self, message = ''): BaseException.__init__ (self, message)
25 class InvalidValue (BaseException):
26 def __init__ (self, message = ''): BaseException.__init__ (self, message)
28 class InvalidAttribute (BaseException):
29 def __init__ (self, message = ''): BaseException.__init__ (self, message)
31 class AlreadyDefined (BaseException):
32 def __init__ (self, message = ''): BaseException.__init__ (self, message)
34 class IllegalOperation (BaseException):
35 def __init__ (self, message = ''): BaseException.__init__ (self, message)
37 class Recursion (BaseException):
38 def __init__ (self, message = ''): BaseException.__init__ (self, message)
40 class NoBestMatchingAlternative (BaseException):
41 def __init__ (self, message = ''): BaseException.__init__ (self, message)
43 class NoAction (BaseException):
44 def __init__ (self, message = ''): BaseException.__init__ (self, message)