summaryrefslogtreecommitdiff
path: root/tools/build/src/exceptions.py
blob: 5750abfe3f0438ad326ede804b64d7e2f8999491 (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
# Copyright Pedro Ferreira 2005. Distributed under the Boost
# Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

# TODO: add more exception types?

class BaseException (Exception):
    def __init__ (self, message = ''): Exception.__init__ (self, message)

class UserError (BaseException):
    def __init__ (self, message = ''): BaseException.__init__ (self, message)

class FeatureConflict (BaseException):
    def __init__ (self, message = ''): BaseException.__init__ (self, message)

class InvalidSource (BaseException):
    def __init__ (self, message = ''): BaseException.__init__ (self, message)

class InvalidFeature (BaseException):
    def __init__ (self, message = ''): BaseException.__init__ (self, message)

class InvalidProperty (BaseException):
    def __init__ (self, message = ''): BaseException.__init__ (self, message)

class InvalidValue (BaseException):
    def __init__ (self, message = ''): BaseException.__init__ (self, message)

class InvalidAttribute (BaseException):
    def __init__ (self, message = ''): BaseException.__init__ (self, message)

class AlreadyDefined (BaseException):
    def __init__ (self, message = ''): BaseException.__init__ (self, message)

class IllegalOperation (BaseException):
    def __init__ (self, message = ''): BaseException.__init__ (self, message)

class Recursion (BaseException):
    def __init__ (self, message = ''): BaseException.__init__ (self, message)

class NoBestMatchingAlternative (BaseException):
    def __init__ (self, message = ''): BaseException.__init__ (self, message)

class NoAction (BaseException):
    def __init__ (self, message = ''): BaseException.__init__ (self, message)