mirror of https://github.com/python/cpython
Marc-Andre Lemburg: Add UnicodeError, derived from ValueError.
This commit is contained in:
parent
9ed0d1ef18
commit
21288edad0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue