Fixed date handling with invalid strings

svn: r1582
This commit is contained in:
Don Allingham
2003-05-23 02:45:44 +00:00
parent 15fdf1787b
commit 11faa9beda
3 changed files with 28 additions and 25 deletions

View File

@@ -18,6 +18,15 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
class DateError(Exception):
"""Error used to report Date errors"""
def __init__(self,value=""):
Exception.__init__(self)
self.value = value
def __str__(self):
return self.value
class ReportError(Exception):
"""Error used to report Report errors"""
def __init__(self,value,value2=""):