From: Guido van Rossum Date: Tue, 10 Dec 1991 13:56:23 +0000 (+0000) Subject: New exceptions. X-Git-Tag: v0.9.8~715 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=876336bc7d274b908e50ca99febeccef36ecb661;p=thirdparty%2FPython%2Fcpython.git New exceptions. --- diff --git a/Include/errors.h b/Include/errors.h index e40f6ce34d67..29c23e9f4851 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 e40f6ce34d67..29c23e9f4851 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 */