mirror of
https://github.com/python/cpython.git
synced 2024-11-25 01:20:47 +01:00
5c600e1614
Added convenience functions.
25 lines
648 B
C
Executable File
25 lines
648 B
C
Executable File
/* Error handling definitions */
|
|
|
|
void err_set PROTO((object *));
|
|
void err_setval PROTO((object *, object *));
|
|
void err_setstr PROTO((object *, char *));
|
|
int err_occurred PROTO((void));
|
|
void err_get PROTO((object **, object **));
|
|
void err_clear PROTO((void));
|
|
|
|
/* Predefined exceptions (in run.c) */
|
|
|
|
extern object *RuntimeError;
|
|
extern object *EOFError;
|
|
extern object *TypeError;
|
|
extern object *MemoryError;
|
|
extern object *NameError;
|
|
extern object *SystemError;
|
|
extern object *KeyboardInterrupt;
|
|
|
|
/* Convenience functions */
|
|
|
|
extern int err_badarg PROTO((void));
|
|
extern object *err_nomem PROTO((void));
|
|
extern object *err_errno PROTO((object *));
|