mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Regularize exceptions.
This commit is contained in:
parent
0f1b8063b5
commit
fb905c3ebf
3 changed files with 48 additions and 61 deletions
|
|
@ -33,23 +33,21 @@ void err_clear PROTO((void));
|
|||
|
||||
/* Predefined exceptions */
|
||||
|
||||
extern object *RuntimeError;
|
||||
extern object *AttributeError;
|
||||
extern object *EOFError;
|
||||
extern object *TypeError;
|
||||
extern object *IOError;
|
||||
extern object *IndexError;
|
||||
extern object *KeyError;
|
||||
extern object *KeyboardInterrupt;
|
||||
extern object *MemoryError;
|
||||
extern object *NameError;
|
||||
extern object *SystemError;
|
||||
extern object *KeyboardInterrupt;
|
||||
|
||||
/* New exceptions */
|
||||
extern object *AttributeError;
|
||||
extern object *IOError;
|
||||
extern object *ZeroDivisionError;
|
||||
extern object *IndexError;
|
||||
extern object *ValueError;
|
||||
extern object *KeyError;
|
||||
extern object *OverflowError;
|
||||
extern object *RuntimeError;
|
||||
extern object *SyntaxError;
|
||||
extern object *SystemError;
|
||||
extern object *TypeError;
|
||||
extern object *ValueError;
|
||||
extern object *ZeroDivisionError;
|
||||
|
||||
/* Convenience functions */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue