Kaydet (Commit) 21288eda authored tarafından Guido van Rossum's avatar Guido van Rossum

Marc-Andre Lemburg: Add UnicodeError, derived from ValueError.

üst 9ed0d1ef
...@@ -61,6 +61,9 @@ Exception(*) ...@@ -61,6 +61,9 @@ Exception(*)
| +-- FloatingPointError | +-- FloatingPointError
| |
+-- ValueError +-- ValueError
| |
| +-- UnicodeError(*)
|
+-- SystemError +-- SystemError
+-- MemoryError +-- MemoryError
""" """
...@@ -224,6 +227,10 @@ class UnboundLocalError(NameError): ...@@ -224,6 +227,10 @@ class UnboundLocalError(NameError):
"""Local name referenced but not bound to a value.""" """Local name referenced but not bound to a value."""
pass pass
class UnicodeError(ValueError):
"""Unicode related error."""
pass
class MemoryError(StandardError): class MemoryError(StandardError):
"""Out of memory.""" """Out of memory."""
pass pass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment