]> code.delx.au - gnu-emacs/blob - doc/lispref/errors.texi
Add 2012 to FSF copyright years for Emacs files
[gnu-emacs] / doc / lispref / errors.texi
1 @c -*-texinfo-*-
2 @c This is part of the GNU Emacs Lisp Reference Manual.
3 @c Copyright (C) 1990-1993, 1999, 2001-2012 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 @cindex standard errors
9
10 Here is the complete list of the error symbols in standard Emacs,
11 grouped by concept. The list includes each symbol's message (on the
12 @code{error-message} property of the symbol) and a cross reference to a
13 description of how the error can occur.
14
15 Each error symbol has an @code{error-conditions} property that is a
16 list of symbols. Normally this list includes the error symbol itself
17 and the symbol @code{error}. Occasionally it includes additional
18 symbols, which are intermediate classifications, narrower than
19 @code{error} but broader than a single error symbol. For example, all
20 the errors in accessing files have the condition @code{file-error}. If
21 we do not say here that a certain error symbol has additional error
22 conditions, that means it has none.
23
24 As a special exception, the error symbol @code{quit} does not have the
25 condition @code{error}, because quitting is not considered an error.
26
27 @xref{Errors}, for an explanation of how errors are generated and
28 handled.
29
30 @table @code
31 @item error
32 @code{"error"}@*
33 @xref{Errors}.
34
35 @item quit
36 @code{"Quit"}@*
37 @xref{Quitting}.
38
39 @item args-out-of-range
40 @code{"Args out of range"}@*
41 This happens when trying to access an element beyond the range of a
42 sequence or buffer.@*
43 @xref{Sequences Arrays Vectors}, @xref{Text}.
44
45 @item arith-error
46 @code{"Arithmetic error"}@*
47 @xref{Arithmetic Operations}.
48
49 @item beginning-of-buffer
50 @code{"Beginning of buffer"}@*
51 @xref{Character Motion}.
52
53 @item buffer-read-only
54 @code{"Buffer is read-only"}@*
55 @xref{Read Only Buffers}.
56
57 @item coding-system-error
58 @code{"Invalid coding system"}@*
59 @xref{Lisp and Coding Systems}.
60
61 @item cyclic-function-indirection
62 @code{"Symbol's chain of function indirections contains a loop"}@*
63 @xref{Function Indirection}.
64
65 @item cyclic-variable-indirection
66 @code{"Symbol's chain of variable indirections contains a loop"}@*
67 @xref{Variable Aliases}.
68
69 @item end-of-buffer
70 @code{"End of buffer"}@*
71 @xref{Character Motion}.
72
73 @item end-of-file
74 @code{"End of file during parsing"}@*
75 Note that this is not a subcategory of @code{file-error},
76 because it pertains to the Lisp reader, not to file I/O.@*
77 @xref{Input Functions}.
78
79 @item file-already-exists
80 This is a subcategory of @code{file-error}.@*
81 @xref{Writing to Files}.
82
83 @item file-date-error
84 This is a subcategory of @code{file-error}. It occurs when
85 @code{copy-file} tries and fails to set the last-modification time of
86 the output file.@*
87 @xref{Changing Files}.
88
89 @item file-error
90 We do not list the error-strings of this error and its subcategories,
91 because the error message is normally constructed from the data items
92 alone when the error condition @code{file-error} is present. Thus,
93 the error-strings are not very relevant. However, these error symbols
94 do have @code{error-message} properties, and if no data is provided,
95 the @code{error-message} property @emph{is} used.@*
96 @xref{Files}.
97
98 @item file-locked
99 This is a subcategory of @code{file-error}.@*
100 @xref{File Locks}.
101
102 @item file-supersession
103 This is a subcategory of @code{file-error}.@*
104 @xref{Modification Time}.
105
106 @item ftp-error
107 This is a subcategory of @code{file-error}, which results from problems
108 in accessing a remote file using ftp.@*
109 @xref{Remote Files,,, emacs, The GNU Emacs Manual}.
110
111 @item invalid-function
112 @code{"Invalid function"}@*
113 @xref{Function Indirection}.
114
115 @item invalid-read-syntax
116 @code{"Invalid read syntax"}@*
117 @xref{Printed Representation}.
118
119 @item invalid-regexp
120 @code{"Invalid regexp"}@*
121 @xref{Regular Expressions}.
122
123 @item mark-inactive
124 @code{"The mark is not active now"}@*
125 @xref{The Mark}.
126
127 @item no-catch
128 @code{"No catch for tag"}@*
129 @xref{Catch and Throw}.
130
131 @item scan-error
132 @code{"Scan error"}@*
133 This happens when certain syntax-parsing functions
134 find invalid syntax or mismatched parentheses.@*
135 @xref{List Motion}, and @ref{Parsing Expressions}.
136
137 @item search-failed
138 @code{"Search failed"}@*
139 @xref{Searching and Matching}.
140
141 @item setting-constant
142 @code{"Attempt to set a constant symbol"}@*
143 The values of the symbols @code{nil} and @code{t},
144 and any symbols that start with @samp{:},
145 may not be changed.@*
146 @xref{Constant Variables, , Variables that Never Change}.
147
148 @item text-read-only
149 @code{"Text is read-only"}@*
150 This is a subcategory of @code{buffer-read-only}.@*
151 @xref{Special Properties}.
152
153 @item undefined-color
154 @code{"Undefined color"}@*
155 @xref{Color Names}.
156
157 @item void-function
158 @code{"Symbol's function definition is void"}@*
159 @xref{Function Cells}.
160
161 @item void-variable
162 @code{"Symbol's value as variable is void"}@*
163 @xref{Accessing Variables}.
164
165 @item wrong-number-of-arguments
166 @code{"Wrong number of arguments"}@*
167 @xref{Classifying Lists}.
168
169 @item wrong-type-argument
170 @code{"Wrong type argument"}@*
171 @xref{Type Predicates}.
172 @end table
173
174 These kinds of error, which are classified as special cases of
175 @code{arith-error}, can occur on certain systems for invalid use of
176 mathematical functions.
177
178 @table @code
179 @item domain-error
180 @code{"Arithmetic domain error"}@*
181 @xref{Math Functions}.
182
183 @item overflow-error
184 @code{"Arithmetic overflow error"}@*
185 This is a subcategory of @code{domain-error}.@*
186 @xref{Math Functions}.
187
188 @item range-error
189 @code{"Arithmetic range error"}@*
190 @xref{Math Functions}.
191
192 @item singularity-error
193 @code{"Arithmetic singularity error"}@*
194 This is a subcategory of @code{domain-error}.@*
195 @xref{Math Functions}.
196
197 @item underflow-error
198 @code{"Arithmetic underflow error"}@*
199 This is a subcategory of @code{domain-error}.@*
200 @xref{Math Functions}.
201 @end table