From: Guido van Rossum Date: Fri, 10 Mar 2000 23:16:02 +0000 (+0000) Subject: Marc-Andre Lemburg: Add UnicodeError, derived from ValueError. X-Git-Tag: v1.6a1~220 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=21288edad084243ba34e51ae37b2ad1c2dfcccd7;p=thirdparty%2FPython%2Fcpython.git Marc-Andre Lemburg: Add UnicodeError, derived from ValueError. --- diff --git a/Lib/exceptions.py b/Lib/exceptions.py index b785a7c725fa..43d1c2da40f3 100644 --- a/Lib/exceptions.py +++ b/Lib/exceptions.py @@ -61,6 +61,9 @@ Exception(*) | +-- FloatingPointError | +-- ValueError + | | + | +-- UnicodeError(*) + | +-- SystemError +-- MemoryError """ @@ -224,6 +227,10 @@ class UnboundLocalError(NameError): """Local name referenced but not bound to a value.""" pass +class UnicodeError(ValueError): + """Unicode related error.""" + pass + class MemoryError(StandardError): """Out of memory.""" pass