Marc-Andre Lemburg: Add UnicodeError, derived from ValueError.
authorGuido van Rossum <guido@python.org>
Fri, 10 Mar 2000 23:16:02 +0000 (23:16 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 10 Mar 2000 23:16:02 +0000 (23:16 +0000)
Lib/exceptions.py

index b785a7c725fadc4538e4be5372811367564be761..43d1c2da40f34863c40371054537601786dc9ad1 100644 (file)
@@ -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