summaryrefslogtreecommitdiffstats
path: root/Include/pyerrors.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1990-10-21 22:09:30 (GMT)
committerGuido van Rossum <guido@python.org>1990-10-21 22:09:30 (GMT)
commit3e55cb6302c7136b9e5fec6dd9213aa27e9978de (patch)
tree146590f182dadeb619705b96caa570770fee6169 /Include/pyerrors.h
parent683a0726420ec63213e95b0e0fdafc11a4dfc9ba (diff)
downloadcpython-3e55cb6302c7136b9e5fec6dd9213aa27e9978de.zip
cpython-3e55cb6302c7136b9e5fec6dd9213aa27e9978de.tar.gz
cpython-3e55cb6302c7136b9e5fec6dd9213aa27e9978de.tar.bz2
Added err_badcall() and planned new errors.
Diffstat (limited to 'Include/pyerrors.h')
-rw-r--r--Include/pyerrors.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Include/pyerrors.h b/Include/pyerrors.h
index c8fc63b..f0e3762 100644
--- a/Include/pyerrors.h
+++ b/Include/pyerrors.h
@@ -17,8 +17,17 @@ 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
+
/* Convenience functions */
extern int err_badarg PROTO((void));
extern object *err_nomem PROTO((void));
extern object *err_errno PROTO((object *));
+
+extern void err_badcall PROTO((void));