From: Olivier Guilyardi Date: Thu, 26 Nov 2009 20:18:53 +0000 (+0000) Subject: migrate TimeSideError into new core (shouldn't be there though) X-Git-Tag: 0.3.2~226 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=cc02e208b3a712cd5ef098b5bc819fbb1df275d4;p=timeside.git migrate TimeSideError into new core (shouldn't be there though) --- diff --git a/newcore.py b/newcore.py index 6797923..9b91d97 100644 --- a/newcore.py +++ b/newcore.py @@ -43,7 +43,12 @@ # - a class implementing a given interface is also considered to implement all # the ascendants of this interface -__all__ = ['Component', 'implements', 'Interface', 'implementations'] +__all__ = ['Component', 'implements', 'Interface', 'implementations', 'TimeSideError'] + +class TimeSideError(Exception): + """Exception base class for errors in TimeSide.""" + # FIXME: is this redundant with Django's error handling ? + # FIXME: this class doesn't belong to the core class Interface(object): """Marker base class for interfaces."""