projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ed0d1e
)
Marc-Andre Lemburg: Add UnicodeError, derived from ValueError.
author
Guido van Rossum
<guido@python.org>
Fri, 10 Mar 2000 23:16:02 +0000
(23:16 +0000)
committer
Guido van Rossum
<guido@python.org>
Fri, 10 Mar 2000 23:16:02 +0000
(23:16 +0000)
Lib/exceptions.py
patch
|
blob
|
history
diff --git
a/Lib/exceptions.py
b/Lib/exceptions.py
index b785a7c725fadc4538e4be5372811367564be761..43d1c2da40f34863c40371054537601786dc9ad1 100644
(file)
--- 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