summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-12-10 13:56:23 (GMT)
committerGuido van Rossum <guido@python.org>1991-12-10 13:56:23 (GMT)
commit876336bc7d274b908e50ca99febeccef36ecb661 (patch)
treec8f0de037417c9cade1fe71922c9d0fc63eda34c /Include
parent9f462af3afe48163e1228998ed6a73d6c329208d (diff)
downloadcpython-876336bc7d274b908e50ca99febeccef36ecb661.zip
cpython-876336bc7d274b908e50ca99febeccef36ecb661.tar.gz
cpython-876336bc7d274b908e50ca99febeccef36ecb661.tar.bz2
New exceptions.
Diffstat (limited to 'Include')
-rwxr-xr-xInclude/errors.h14
-rw-r--r--Include/pyerrors.h14
2 files changed, 16 insertions, 12 deletions
diff --git a/Include/errors.h b/Include/errors.h
index e40f6ce..29c23e9 100755
--- a/Include/errors.h
+++ b/Include/errors.h
@@ -41,12 +41,14 @@ extern object *NameError;
extern object *SystemError;
extern object *KeyboardInterrupt;
-/* Some more planned for the future */
-
-#define IndexError RuntimeError
-#define KeyError RuntimeError
-#define ZeroDivisionError RuntimeError
-#define OverflowError RuntimeError
+/* New exceptions */
+extern object *AttributeError;
+extern object *IOError;
+extern object *ZeroDivisionError;
+extern object *IndexError;
+extern object *ValueError;
+extern object *KeyError;
+extern object *OverflowError;
/* Convenience functions */
diff --git a/Include/pyerrors.h b/Include/pyerrors.h
index e40f6ce..29c23e9 100644
--- a/Include/pyerrors.h
+++ b/Include/pyerrors.h
@@ -41,12 +41,14 @@ extern object *NameError;
extern object *SystemError;
extern object *KeyboardInterrupt;
-/* Some more planned for the future */
-
-#define IndexError RuntimeError
-#define KeyError RuntimeError
-#define ZeroDivisionError RuntimeError
-#define OverflowError RuntimeError
+/* New exceptions */
+extern object *AttributeError;
+extern object *IOError;
+extern object *ZeroDivisionError;
+extern object *IndexError;
+extern object *ValueError;
+extern object *KeyError;
+extern object *OverflowError;
/* Convenience functions */