summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
Diffstat (limited to 'Include')
-rwxr-xr-xInclude/errors.h9
-rw-r--r--Include/pyerrors.h9
2 files changed, 18 insertions, 0 deletions
diff --git a/Include/errors.h b/Include/errors.h
index c8fc63b..f0e3762 100755
--- a/Include/errors.h
+++ b/Include/errors.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));
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));