2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 13:02:11 +00:00
Files
build/v2/exceptions.py
Vladimir Prus afddf088b8 Merge Boost.Build from trunk.
Note that since regression tests are using trunk Boost.Build,
this is already tested.


[SVN r57186]
2009-10-28 07:47:51 +00:00

45 lines
1.7 KiB
Python

# 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)