Mercurial > cpython-lru_cache-weakref
annotate Include/pyerrors.h @ 1944:8e8fddcbdfd2 legacy-trunk
Hopefully the last edits for 1.1
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 06 Oct 1994 16:15:09 +0000 |
| parents | 9b530bb54642 |
| children | 4ebee904924e |
| rev | line source |
|---|---|
|
1329
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1288
diff
changeset
|
1 #ifndef Py_ERRORS_H |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1288
diff
changeset
|
2 #define Py_ERRORS_H |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1288
diff
changeset
|
3 #ifdef __cplusplus |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1288
diff
changeset
|
4 extern "C" { |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1288
diff
changeset
|
5 #endif |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1288
diff
changeset
|
6 |
| 145 | 7 /*********************************************************** |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1329
diff
changeset
|
8 Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum, |
|
1257
1cabc2b6c970
* Changed all copyright messages to include 1993.
Guido van Rossum <guido@python.org>
parents:
790
diff
changeset
|
9 Amsterdam, The Netherlands. |
| 145 | 10 |
| 11 All Rights Reserved | |
| 12 | |
| 13 Permission to use, copy, modify, and distribute this software and its | |
| 14 documentation for any purpose and without fee is hereby granted, | |
| 15 provided that the above copyright notice appear in all copies and that | |
| 16 both that copyright notice and this permission notice appear in | |
| 17 supporting documentation, and that the names of Stichting Mathematisch | |
| 18 Centrum or CWI not be used in advertising or publicity pertaining to | |
| 19 distribution of the software without specific, written prior permission. | |
| 20 | |
| 21 STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO | |
| 22 THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND | |
| 23 FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE | |
| 24 FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
| 25 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
| 26 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT | |
| 27 OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
| 28 | |
| 29 ******************************************************************/ | |
| 30 | |
| 6 | 31 /* Error handling definitions */ |
| 32 | |
| 33 void err_set PROTO((object *)); | |
| 34 void err_setval PROTO((object *, object *)); | |
| 35 void err_setstr PROTO((object *, char *)); | |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1329
diff
changeset
|
36 object *err_occurred PROTO((void)); |
| 6 | 37 void err_get PROTO((object **, object **)); |
| 38 void err_clear PROTO((void)); | |
| 39 | |
| 86 | 40 /* Predefined exceptions */ |
|
10
a71e896ed047
Made exception objects extern.
Guido van Rossum <guido@python.org>
parents:
6
diff
changeset
|
41 |
|
1794
9b530bb54642
Changes for dynamic linking under NT
Guido van Rossum <guido@python.org>
parents:
1746
diff
changeset
|
42 extern DL_IMPORT object *AccessError; |
|
9b530bb54642
Changes for dynamic linking under NT
Guido van Rossum <guido@python.org>
parents:
1746
diff
changeset
|
43 extern DL_IMPORT object *AttributeError; |
|
9b530bb54642
Changes for dynamic linking under NT
Guido van Rossum <guido@python.org>
parents:
1746
diff
changeset
|
44 extern DL_IMPORT object *ConflictError; |
|
9b530bb54642
Changes for dynamic linking under NT
Guido van Rossum <guido@python.org>
parents:
1746
diff
changeset
|
45 extern DL_IMPORT object *EOFError; |
|
9b530bb54642
Changes for dynamic linking under NT
Guido van Rossum <guido@python.org>
parents:
1746
diff
changeset
|
46 extern DL_IMPORT object *IOError; |
|
9b530bb54642
Changes for dynamic linking under NT
Guido van Rossum <guido@python.org>
parents:
1746
diff
changeset
|
47 extern DL_IMPORT object *ImportError; |
|
9b530bb54642
Changes for dynamic linking under NT
Guido van Rossum <guido@python.org>
parents:
1746
diff
changeset
|
48 extern DL_IMPORT object *IndexError; |
|
9b530bb54642
Changes for dynamic linking under NT
Guido van Rossum <guido@python.org>
parents:
1746
diff
changeset
|
49 extern DL_IMPORT object *KeyError; |
|
9b530bb54642
Changes for dynamic linking under NT
Guido van Rossum <guido@python.org>
parents:
1746
diff
changeset
|
50 extern DL_IMPORT object *KeyboardInterrupt; |
|
9b530bb54642
Changes for dynamic linking under NT
Guido van Rossum <guido@python.org>
parents:
1746
diff
changeset
|
51 extern DL_IMPORT object *MemoryError; |
|
9b530bb54642
Changes for dynamic linking under NT
Guido van Rossum <guido@python.org>
parents:
1746
diff
changeset
|
52 extern DL_IMPORT object *NameError; |
|
9b530bb54642
Changes for dynamic linking under NT
Guido van Rossum <guido@python.org>
parents:
1746
diff
changeset
|
53 extern DL_IMPORT object *OverflowError; |
|
9b530bb54642
Changes for dynamic linking under NT
Guido van Rossum <guido@python.org>
parents:
1746
diff
changeset
|
54 extern DL_IMPORT object *RuntimeError; |
|
9b530bb54642
Changes for dynamic linking under NT
Guido van Rossum <guido@python.org>
parents:
1746
diff
changeset
|
55 extern DL_IMPORT object *SyntaxError; |
|
9b530bb54642
Changes for dynamic linking under NT
Guido van Rossum <guido@python.org>
parents:
1746
diff
changeset
|
56 extern DL_IMPORT object *SystemError; |
|
9b530bb54642
Changes for dynamic linking under NT
Guido van Rossum <guido@python.org>
parents:
1746
diff
changeset
|
57 extern DL_IMPORT object *SystemExit; |
|
9b530bb54642
Changes for dynamic linking under NT
Guido van Rossum <guido@python.org>
parents:
1746
diff
changeset
|
58 extern DL_IMPORT object *TypeError; |
|
9b530bb54642
Changes for dynamic linking under NT
Guido van Rossum <guido@python.org>
parents:
1746
diff
changeset
|
59 extern DL_IMPORT object *ValueError; |
|
9b530bb54642
Changes for dynamic linking under NT
Guido van Rossum <guido@python.org>
parents:
1746
diff
changeset
|
60 extern DL_IMPORT object *ZeroDivisionError; |
|
23
08562de01668
Added err_badcall() and planned new errors.
Guido van Rossum <guido@python.org>
parents:
10
diff
changeset
|
61 |
|
10
a71e896ed047
Made exception objects extern.
Guido van Rossum <guido@python.org>
parents:
6
diff
changeset
|
62 /* Convenience functions */ |
|
a71e896ed047
Made exception objects extern.
Guido van Rossum <guido@python.org>
parents:
6
diff
changeset
|
63 |
|
a71e896ed047
Made exception objects extern.
Guido van Rossum <guido@python.org>
parents:
6
diff
changeset
|
64 extern int err_badarg PROTO((void)); |
|
a71e896ed047
Made exception objects extern.
Guido van Rossum <guido@python.org>
parents:
6
diff
changeset
|
65 extern object *err_nomem PROTO((void)); |
|
a71e896ed047
Made exception objects extern.
Guido van Rossum <guido@python.org>
parents:
6
diff
changeset
|
66 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
|
67 |
|
08562de01668
Added err_badcall() and planned new errors.
Guido van Rossum <guido@python.org>
parents:
10
diff
changeset
|
68 extern void err_badcall PROTO((void)); |
|
1288
9fed5726a36d
Several changes in one:
Guido van Rossum <guido@python.org>
parents:
1257
diff
changeset
|
69 |
|
9fed5726a36d
Several changes in one:
Guido van Rossum <guido@python.org>
parents:
1257
diff
changeset
|
70 extern object *err_getexc PROTO((void)); |
|
1329
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1288
diff
changeset
|
71 |
|
1746
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1329
diff
changeset
|
72 extern int sigcheck PROTO((void)); /* In sigcheck.c or signalmodule.c */ |
|
1940892d2fe3
Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents:
1329
diff
changeset
|
73 |
|
1329
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1288
diff
changeset
|
74 #ifdef __cplusplus |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1288
diff
changeset
|
75 } |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1288
diff
changeset
|
76 #endif |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1288
diff
changeset
|
77 #endif /* !Py_ERRORS_H */ |
