# www.jquigley.com # Fri Aug 17 02:43:06 CDT 2007 class AppException( Exception ): def __init__(self, value): Exception.__init__(self) self.value = value self.msg = value def __str__(self): if type(self.value) is str: return self.value else: return repr(self.value) class ContainerError(AppException): def __init__(self, value): AppException.__init__(self, value) class InitializationError(AppException): def __init__(self, value): AppException.__init__(self, value) class DocumentExistsInIndexError(AppException): def __init__(self, value): AppException.__init__(self, value) # EOF