Kaydet (Commit) 3e55cb63 authored tarafından Guido van Rossum's avatar Guido van Rossum

Added err_badcall() and planned new errors.

üst 683a0726
...@@ -17,8 +17,17 @@ extern object *NameError; ...@@ -17,8 +17,17 @@ extern object *NameError;
extern object *SystemError; extern object *SystemError;
extern object *KeyboardInterrupt; extern object *KeyboardInterrupt;
/* Some more planned for the future */
#define IndexError RuntimeError
#define KeyError RuntimeError
#define ZeroDivisionError RuntimeError
#define OverflowError RuntimeError
/* Convenience functions */ /* Convenience functions */
extern int err_badarg PROTO((void)); extern int err_badarg PROTO((void));
extern object *err_nomem PROTO((void)); extern object *err_nomem PROTO((void));
extern object *err_errno PROTO((object *)); extern object *err_errno PROTO((object *));
extern void err_badcall PROTO((void));
...@@ -17,8 +17,17 @@ extern object *NameError; ...@@ -17,8 +17,17 @@ extern object *NameError;
extern object *SystemError; extern object *SystemError;
extern object *KeyboardInterrupt; extern object *KeyboardInterrupt;
/* Some more planned for the future */
#define IndexError RuntimeError
#define KeyError RuntimeError
#define ZeroDivisionError RuntimeError
#define OverflowError RuntimeError
/* Convenience functions */ /* Convenience functions */
extern int err_badarg PROTO((void)); extern int err_badarg PROTO((void));
extern object *err_nomem PROTO((void)); extern object *err_nomem PROTO((void));
extern object *err_errno PROTO((object *)); extern object *err_errno PROTO((object *));
extern void err_badcall PROTO((void));
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