diff options
author | Guido van Rossum <guido@python.org> | 2000-03-10 23:16:02 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-03-10 23:16:02 (GMT) |
commit | 21288edad084243ba34e51ae37b2ad1c2dfcccd7 (patch) | |
tree | ed82c0ab812f74479b0f73d59e1e85dba9385ab7 /Lib | |
parent | 9ed0d1ef18321f8939cd899276bba27cb61e5c3a (diff) | |
download | cpython-21288edad084243ba34e51ae37b2ad1c2dfcccd7.zip cpython-21288edad084243ba34e51ae37b2ad1c2dfcccd7.tar.gz cpython-21288edad084243ba34e51ae37b2ad1c2dfcccd7.tar.bz2 |
Marc-Andre Lemburg: Add UnicodeError, derived from ValueError.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/exceptions.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/exceptions.py b/Lib/exceptions.py index b785a7c..43d1c2d 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 |