changeset 166:ee11ed427ba8

Created exceptions.py
author Joseph Turian <turian@gmail.com>
date Mon, 12 May 2008 18:40:17 -0400
parents 2a12e7437c56
children 4803cb76e26b
files dataset.py exceptions.py
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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
--- /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"""