Commit 3db20c2d authored by Barry Warsaw's avatar Barry Warsaw

Added NotImplementedError, subclassed from RuntimeError

parent 9725f866
...@@ -12,9 +12,11 @@ tricky uses of IOError may break, but the most common uses should work. ...@@ -12,9 +12,11 @@ tricky uses of IOError may break, but the most common uses should work.
Here is a rundown of the class hierarchy. You can change this by editing this Here is a rundown of the class hierarchy. You can change this by editing this
file, but it isn't recommended. The class names described here are expected file, but it isn't recommended. The class names described here are expected
to be found by the bltinmodule.c file. to be found by the bltinmodule.c file. If you add classes here, you must
modify bltinmodule.c or the exceptions won't be available in the __builtin__
module, nor will they be accessible from C.
The classes with a `*' are new as of Python 1.5. They are defined as tuples The classes with a `*' are new since Python 1.5. They are defined as tuples
containing the derived exceptions when string-based exceptions are used. If containing the derived exceptions when string-based exceptions are used. If
you define your own class based exceptions, they should be derived from you define your own class based exceptions, they should be derived from
Exception. Exception.
...@@ -33,6 +35,9 @@ Exception(*) ...@@ -33,6 +35,9 @@ Exception(*)
| |
+-- EOFError +-- EOFError
+-- RuntimeError +-- RuntimeError
| |
| +-- NotImplementedError(*)
|
+-- NameError +-- NameError
+-- AttributeError +-- AttributeError
+-- SyntaxError +-- SyntaxError
...@@ -130,6 +135,9 @@ class OSError(EnvironmentError): ...@@ -130,6 +135,9 @@ class OSError(EnvironmentError):
class RuntimeError(StandardError): class RuntimeError(StandardError):
pass pass
class NotImplementedError(RuntimeError):
pass
class SystemError(StandardError): class SystemError(StandardError):
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