mirror of
https://github.com/python/cpython.git
synced 2026-01-03 22:12:27 +00:00
New exceptions.
This commit is contained in:
parent
9f462af3af
commit
876336bc7d
2 changed files with 16 additions and 12 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue