diff Include/pyerrors.h @ 468:10e3d2604131 legacy-trunk

New exceptions.
author Guido van Rossum <guido@python.org>
date Tue, 10 Dec 1991 13:56:23 +0000
parents 853b736a6a9e
children 3b385bda38f8
line wrap: on
line diff
--- a/Include/pyerrors.h	Tue Dec 10 13:54:12 1991 +0000
+++ b/Include/pyerrors.h	Tue Dec 10 13:56:23 1991 +0000
@@ -41,12 +41,14 @@
 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 */