# HG changeset patch # User Joseph Turian # Date 1210632017 14400 # Node ID ee11ed427ba8e911824092a09aad3e6d1f953d47 # Parent 2a12e7437c5661ff53172cf1a7d35c97575d9722 Created exceptions.py diff -r 2a12e7437c56 -r ee11ed427ba8 dataset.py --- a/dataset.py Mon May 12 17:51:28 2008 -0400 +++ b/dataset.py Mon May 12 18:40:17 2008 -0400 @@ -6,8 +6,7 @@ from sys import maxint import numpy -class AbstractFunction (Exception): """Derived class must override this function""" -class NotImplementedYet (NotImplementedError): """Work in progress, this should eventually be implemented""" +from exceptions import * class AttributesHolder(object): def __init__(self): pass diff -r 2a12e7437c56 -r ee11ed427ba8 exceptions.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/exceptions.py Mon May 12 18:40:17 2008 -0400 @@ -0,0 +1,7 @@ +""" +Common exceptions. +@todo: This file should be part of a common/ python package. +""" + +class AbstractFunction (Exception): """Derived class must override this function""" +class NotImplementedYet (NotImplementedError): """Work in progress, this should eventually be implemented"""