7198, 7212: document DateError.date

See also [8e1659]
    7198, 7212: attach invalid date to DateError
This commit is contained in:
Vassilii Khachaturov 2013-11-23 21:43:42 +02:00
parent 175213b902
commit 3fdaa4ff52

View File

@ -40,7 +40,11 @@ class FilterError(Exception):
return (self.value, self.value2)
class DateError(Exception):
"""Error used to report Date errors"""
"""Error used to report Date errors
Might have a .date attribute holding an invalid Date object
that triggered the error.
"""
def __init__(self, value=""):
Exception.__init__(self)
self.value = value