Regularize exceptions.

This commit is contained in:
Guido van Rossum 1991-12-16 15:42:38 +00:00
parent 0f1b8063b5
commit fb905c3ebf
3 changed files with 48 additions and 61 deletions

View file

@ -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 */