Mercurial > emacs
annotate lispref/errors.texi @ 21439:2280d06ab327
*** empty log message ***
author | Dan Nicolaescu <done@ece.arizona.edu> |
---|---|
date | Wed, 08 Apr 1998 19:38:37 +0000 |
parents | 66d807bdc5b4 |
children | 90da2489c498 |
rev | line source |
---|---|
2899 | 1 @c -*-texinfo-*- |
2 @c This is part of the GNU Emacs Lisp Reference Manual. | |
3 @c Copyright (C) 1990, 1991, 1992, 1993 Free Software Foundation, Inc. | |
4 @c See the file elisp.texi for copying conditions. | |
5 @setfilename ../info/errors | |
6 @node Standard Errors, Standard Buffer-Local Variables, GNU Emacs Internals, Top | |
7 @appendix Standard Errors | |
8 | |
9 Here is the complete list of the error symbols in standard Emacs, | |
10 grouped by concept. The list includes each symbol's message (on the | |
7600 | 11 @code{error-message} property of the symbol) and a cross reference to a |
2899 | 12 description of how the error can occur. |
13 | |
7600 | 14 Each error symbol has an @code{error-conditions} property that is a |
15 list of symbols. Normally this list includes the error symbol itself | |
2899 | 16 and the symbol @code{error}. Occasionally it includes additional |
7600 | 17 symbols, which are intermediate classifications, narrower than |
18 @code{error} but broader than a single error symbol. For example, all | |
21007
66d807bdc5b4
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
16736
diff
changeset
|
19 the errors in accessing files have the condition @code{file-error}. If |
66d807bdc5b4
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
16736
diff
changeset
|
20 we do not say here that a certain error symbol has additional error |
66d807bdc5b4
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
16736
diff
changeset
|
21 conditions, that means it has none. |
2899 | 22 |
23 As a special exception, the error symbol @code{quit} does not have the | |
24 condition @code{error}, because quitting is not considered an error. | |
25 | |
26 @xref{Errors}, for an explanation of how errors are generated and | |
27 handled. | |
28 | |
29 @table @code | |
30 @item @var{symbol} | |
31 @var{string}; @var{reference}. | |
32 | |
33 @item error | |
34 @code{"error"}@* | |
35 @xref{Errors}. | |
36 | |
37 @item quit | |
38 @code{"Quit"}@* | |
39 @xref{Quitting}. | |
40 | |
41 @item args-out-of-range | |
42 @code{"Args out of range"}@* | |
43 @xref{Sequences Arrays Vectors}. | |
44 | |
45 @item arith-error | |
46 @code{"Arithmetic error"}@* | |
47 See @code{/} and @code{%} in @ref{Numbers}. | |
48 | |
49 @item beginning-of-buffer | |
50 @code{"Beginning of buffer"}@* | |
51 @xref{Motion}. | |
52 | |
53 @item buffer-read-only | |
54 @code{"Buffer is read-only"}@* | |
55 @xref{Read Only Buffers}. | |
56 | |
12098 | 57 @item cyclic-function-indirection |
16736
981e116b4ac6
Minor cleanups for overfull hboxes.
Richard M. Stallman <rms@gnu.org>
parents:
12098
diff
changeset
|
58 @code{"Symbol's chain of function indirections contains a@* |
981e116b4ac6
Minor cleanups for overfull hboxes.
Richard M. Stallman <rms@gnu.org>
parents:
12098
diff
changeset
|
59 loop"}@* |
12098 | 60 @xref{Function Indirection}. |
61 | |
2899 | 62 @item end-of-buffer |
63 @code{"End of buffer"}@* | |
64 @xref{Motion}. | |
65 | |
66 @item end-of-file | |
67 @code{"End of file during parsing"}@* | |
68 This is not a @code{file-error}.@* | |
69 @xref{Input Functions}. | |
70 | |
21007
66d807bdc5b4
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
16736
diff
changeset
|
71 @item file-date-error |
66d807bdc5b4
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
16736
diff
changeset
|
72 This is a subcategory of @code{file-error}. It occurs when |
66d807bdc5b4
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
16736
diff
changeset
|
73 @code{copy-file} tries and fails to set the last-modification time of |
66d807bdc5b4
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
16736
diff
changeset
|
74 the output file. @xref{Changing Files}. |
66d807bdc5b4
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
16736
diff
changeset
|
75 |
2899 | 76 @item file-error |
7600 | 77 This error and its subcategories do not have error-strings, because the |
78 error message is constructed from the data items alone when the error | |
79 condition @code{file-error} is present.@* | |
2899 | 80 @xref{Files}. |
81 | |
82 @item file-locked | |
83 This is a @code{file-error}.@* | |
84 @xref{File Locks}. | |
85 | |
86 @item file-already-exists | |
87 This is a @code{file-error}.@* | |
88 @xref{Writing to Files}. | |
89 | |
90 @item file-supersession | |
91 This is a @code{file-error}.@* | |
7600 | 92 @xref{Modification Time}. |
2899 | 93 |
94 @item invalid-function | |
95 @code{"Invalid function"}@* | |
96 @xref{Classifying Lists}. | |
97 | |
98 @item invalid-read-syntax | |
99 @code{"Invalid read syntax"}@* | |
100 @xref{Input Functions}. | |
101 | |
102 @item invalid-regexp | |
103 @code{"Invalid regexp"}@* | |
104 @xref{Regular Expressions}. | |
105 | |
106 @item no-catch | |
107 @code{"No catch for tag"}@* | |
108 @xref{Catch and Throw}. | |
109 | |
110 @item search-failed | |
111 @code{"Search failed"}@* | |
112 @xref{Searching and Matching}. | |
113 | |
114 @item setting-constant | |
115 @code{"Attempt to set a constant symbol"}@* | |
116 The values of the symbols @code{nil} and @code{t} | |
117 may not be changed.@* | |
118 @xref{Constant Variables, , Variables that Never Change}. | |
119 | |
12098 | 120 @item undefined-color |
121 @code{"Undefined color"}@* | |
122 @xref{Color Names}. | |
123 | |
2899 | 124 @item void-function |
125 @code{"Symbol's function definition is void"}@* | |
126 @xref{Function Cells}. | |
127 | |
128 @item void-variable | |
129 @code{"Symbol's value as variable is void"}@* | |
130 @xref{Accessing Variables}. | |
131 | |
132 @item wrong-number-of-arguments | |
133 @code{"Wrong number of arguments"}@* | |
134 @xref{Classifying Lists}. | |
135 | |
136 @item wrong-type-argument | |
137 @code{"Wrong type argument"}@* | |
138 @xref{Type Predicates}. | |
139 @end table | |
12098 | 140 |
141 These error types, which are all classified as special cases of | |
142 @code{arith-error}, can occur on certain systems for invalid use of | |
143 mathematical functions. | |
144 | |
145 @table @code | |
146 @item domain-error | |
147 @code{"Arithmetic domain error"}@* | |
148 @xref{Math Functions}. | |
149 | |
150 @item overflow-error | |
151 @code{"Arithmetic overflow error"}@* | |
152 @xref{Math Functions}. | |
153 | |
154 @item range-error | |
155 @code{"Arithmetic range error"}@* | |
156 @xref{Math Functions}. | |
157 | |
158 @item singularity-error | |
159 @code{"Arithmetic singularity error"}@* | |
160 @xref{Math Functions}. | |
161 | |
162 @item underflow-error | |
163 @code{"Arithmetic underflow error"}@* | |
164 @xref{Math Functions}. | |
165 @end table |