Mercurial > emacs
annotate lispref/errors.texi @ 24018:b918e6330d6e
Support configuring with leim.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Thu, 07 Jan 1999 12:27:19 +0000 |
parents | dfac7398266b |
children | 467b88fab665 |
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 |
22267
dfac7398266b
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
22252
diff
changeset
|
58 @code{"Symbol's chain of function indirections\@* contains a loop"}@* |
12098 | 59 @xref{Function Indirection}. |
60 | |
2899 | 61 @item end-of-buffer |
62 @code{"End of buffer"}@* | |
63 @xref{Motion}. | |
64 | |
65 @item end-of-file | |
66 @code{"End of file during parsing"}@* | |
21682
90da2489c498
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
21007
diff
changeset
|
67 Note that this is not a @code{file-error} |
90da2489c498
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
21007
diff
changeset
|
68 because it pertains to the Lisp reader, not to file I/O. |
2899 | 69 @xref{Input Functions}. |
70 | |
21682
90da2489c498
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
21007
diff
changeset
|
71 @item file-already-exists |
90da2489c498
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
21007
diff
changeset
|
72 This is a @code{file-error}.@* |
90da2489c498
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
21007
diff
changeset
|
73 @xref{Writing to Files}. |
90da2489c498
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
21007
diff
changeset
|
74 |
21007
66d807bdc5b4
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
16736
diff
changeset
|
75 @item file-date-error |
66d807bdc5b4
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
16736
diff
changeset
|
76 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
|
77 @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
|
78 the output file. @xref{Changing Files}. |
66d807bdc5b4
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
16736
diff
changeset
|
79 |
2899 | 80 @item file-error |
7600 | 81 This error and its subcategories do not have error-strings, because the |
82 error message is constructed from the data items alone when the error | |
83 condition @code{file-error} is present.@* | |
2899 | 84 @xref{Files}. |
85 | |
86 @item file-locked | |
87 This is a @code{file-error}.@* | |
88 @xref{File Locks}. | |
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 | |
21682
90da2489c498
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
21007
diff
changeset
|
106 @item mark-inactive |
22138
d4ac295a98b3
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
21682
diff
changeset
|
107 @code{"Mark inactive"}@* |
21682
90da2489c498
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
21007
diff
changeset
|
108 @xref{The Mark}. |
90da2489c498
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
21007
diff
changeset
|
109 |
2899 | 110 @item no-catch |
111 @code{"No catch for tag"}@* | |
112 @xref{Catch and Throw}. | |
113 | |
21682
90da2489c498
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
21007
diff
changeset
|
114 @item scan-error |
90da2489c498
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
21007
diff
changeset
|
115 @code{"Scan error"}@* |
90da2489c498
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
21007
diff
changeset
|
116 This happens when certain syntax-parsing functions |
90da2489c498
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
21007
diff
changeset
|
117 find invalid syntax or mismatched parentheses.@* |
90da2489c498
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
21007
diff
changeset
|
118 @xref{List Motion}, and @ref{Parsing Expressions}. |
90da2489c498
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
21007
diff
changeset
|
119 |
2899 | 120 @item search-failed |
121 @code{"Search failed"}@* | |
122 @xref{Searching and Matching}. | |
123 | |
124 @item setting-constant | |
125 @code{"Attempt to set a constant symbol"}@* | |
21682
90da2489c498
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
21007
diff
changeset
|
126 The values of the symbols @code{nil} and @code{t}, |
90da2489c498
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
21007
diff
changeset
|
127 and any symbols that start with @samp{:}, |
2899 | 128 may not be changed.@* |
129 @xref{Constant Variables, , Variables that Never Change}. | |
130 | |
12098 | 131 @item undefined-color |
132 @code{"Undefined color"}@* | |
133 @xref{Color Names}. | |
134 | |
2899 | 135 @item void-function |
136 @code{"Symbol's function definition is void"}@* | |
137 @xref{Function Cells}. | |
138 | |
139 @item void-variable | |
140 @code{"Symbol's value as variable is void"}@* | |
141 @xref{Accessing Variables}. | |
142 | |
143 @item wrong-number-of-arguments | |
144 @code{"Wrong number of arguments"}@* | |
145 @xref{Classifying Lists}. | |
146 | |
147 @item wrong-type-argument | |
148 @code{"Wrong type argument"}@* | |
149 @xref{Type Predicates}. | |
150 @end table | |
12098 | 151 |
21682
90da2489c498
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
21007
diff
changeset
|
152 These kinds of error, which are classified as special cases of |
12098 | 153 @code{arith-error}, can occur on certain systems for invalid use of |
154 mathematical functions. | |
155 | |
156 @table @code | |
157 @item domain-error | |
158 @code{"Arithmetic domain error"}@* | |
159 @xref{Math Functions}. | |
160 | |
161 @item overflow-error | |
162 @code{"Arithmetic overflow error"}@* | |
163 @xref{Math Functions}. | |
164 | |
165 @item range-error | |
166 @code{"Arithmetic range error"}@* | |
167 @xref{Math Functions}. | |
168 | |
169 @item singularity-error | |
170 @code{"Arithmetic singularity error"}@* | |
171 @xref{Math Functions}. | |
172 | |
173 @item underflow-error | |
174 @code{"Arithmetic underflow error"}@* | |
175 @xref{Math Functions}. | |
176 @end table |