]> git.parisson.com Git - timeside.git/commitdiff
migrate TimeSideError into new core (shouldn't be there though)
authorOlivier Guilyardi <olivier@samalyse.com>
Thu, 26 Nov 2009 20:18:53 +0000 (20:18 +0000)
committerOlivier Guilyardi <olivier@samalyse.com>
Thu, 26 Nov 2009 20:18:53 +0000 (20:18 +0000)
newcore.py

index 67979232f8e211759dab242735a0924d455813a5..9b91d97164f832012b925f301a9736e6fc55fdfc 100644 (file)
 # - 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."""