summaryrefslogtreecommitdiff
path: root/tools/build/v2/exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build/v2/exceptions.py')
-rw-r--r--tools/build/v2/exceptions.py44
1 files changed, 44 insertions, 0 deletions
diff --git a/tools/build/v2/exceptions.py b/tools/build/v2/exceptions.py
new file mode 100644
index 0000000000..5750abfe3f
--- /dev/null
+++ b/tools/build/v2/exceptions.py
@@ -0,0 +1,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)