Mercurial > cpython-lru_cache-weakref
annotate Include/errors.h @ 23:08562de01668 legacy-trunk
Added err_badcall() and planned new errors.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sun, 21 Oct 1990 22:09:30 +0000 |
| parents | a71e896ed047 |
| children | a6934380c6e7 |
| rev | line source |
|---|---|
| 6 | 1 /* Error handling definitions */ |
| 2 | |
| 3 void err_set PROTO((object *)); | |
| 4 void err_setval PROTO((object *, object *)); | |
| 5 void err_setstr PROTO((object *, char *)); | |
| 6 int err_occurred PROTO((void)); | |
| 7 void err_get PROTO((object **, object **)); | |
| 8 void err_clear PROTO((void)); | |
| 9 | |
| 10 /* Predefined exceptions (in run.c) */ | |
|
10
a71e896ed047
Made exception objects extern.
Guido van Rossum <guido@python.org>
parents:
6
diff
changeset
|
11 |
|
a71e896ed047
Made exception objects extern.
Guido van Rossum <guido@python.org>
parents:
6
diff
changeset
|
12 extern object *RuntimeError; |
|
a71e896ed047
Made exception objects extern.
Guido van Rossum <guido@python.org>
parents:
6
diff
changeset
|
13 extern object *EOFError; |
|
a71e896ed047
Made exception objects extern.
Guido van Rossum <guido@python.org>
parents:
6
diff
changeset
|
14 extern object *TypeError; |
|
a71e896ed047
Made exception objects extern.
Guido van Rossum <guido@python.org>
parents:
6
diff
changeset
|
15 extern object *MemoryError; |
|
a71e896ed047
Made exception objects extern.
Guido van Rossum <guido@python.org>
parents:
6
diff
changeset
|
16 extern object *NameError; |
|
a71e896ed047
Made exception objects extern.
Guido van Rossum <guido@python.org>
parents:
6
diff
changeset
|
17 extern object *SystemError; |
|
a71e896ed047
Made exception objects extern.
Guido van Rossum <guido@python.org>
parents:
6
diff
changeset
|
18 extern object *KeyboardInterrupt; |
|
a71e896ed047
Made exception objects extern.
Guido van Rossum <guido@python.org>
parents:
6
diff
changeset
|
19 |
|
23
08562de01668
Added err_badcall() and planned new errors.
Guido van Rossum <guido@python.org>
parents:
10
diff
changeset
|
20 /* Some more planned for the future */ |
|
08562de01668
Added err_badcall() and planned new errors.
Guido van Rossum <guido@python.org>
parents:
10
diff
changeset
|
21 |
|
08562de01668
Added err_badcall() and planned new errors.
Guido van Rossum <guido@python.org>
parents:
10
diff
changeset
|
22 #define IndexError RuntimeError |
|
08562de01668
Added err_badcall() and planned new errors.
Guido van Rossum <guido@python.org>
parents:
10
diff
changeset
|
23 #define KeyError RuntimeError |
|
08562de01668
Added err_badcall() and planned new errors.
Guido van Rossum <guido@python.org>
parents:
10
diff
changeset
|
24 #define ZeroDivisionError RuntimeError |
|
08562de01668
Added err_badcall() and planned new errors.
Guido van Rossum <guido@python.org>
parents:
10
diff
changeset
|
25 #define OverflowError RuntimeError |
|
08562de01668
Added err_badcall() and planned new errors.
Guido van Rossum <guido@python.org>
parents:
10
diff
changeset
|
26 |
|
10
a71e896ed047
Made exception objects extern.
Guido van Rossum <guido@python.org>
parents:
6
diff
changeset
|
27 /* Convenience functions */ |
|
a71e896ed047
Made exception objects extern.
Guido van Rossum <guido@python.org>
parents:
6
diff
changeset
|
28 |
|
a71e896ed047
Made exception objects extern.
Guido van Rossum <guido@python.org>
parents:
6
diff
changeset
|
29 extern int err_badarg PROTO((void)); |
|
a71e896ed047
Made exception objects extern.
Guido van Rossum <guido@python.org>
parents:
6
diff
changeset
|
30 extern object *err_nomem PROTO((void)); |
|
a71e896ed047
Made exception objects extern.
Guido van Rossum <guido@python.org>
parents:
6
diff
changeset
|
31 extern object *err_errno PROTO((object *)); |
|
23
08562de01668
Added err_badcall() and planned new errors.
Guido van Rossum <guido@python.org>
parents:
10
diff
changeset
|
32 |
|
08562de01668
Added err_badcall() and planned new errors.
Guido van Rossum <guido@python.org>
parents:
10
diff
changeset
|
33 extern void err_badcall PROTO((void)); |
