F Standard Errors
Here is a list of the more important error symbols in standard Emacs, grouped by concept. The list includes each symbolβs message and a cross reference to a description of how the error can occur.
Each error symbol has a set of parent error conditions that is a list of symbols. Normally this list includes the error symbol itself and the symbol error
. Occasionally it includes additional symbols, which are intermediate classifications, narrower than error
but broader than a single error symbol. For example, all the errors in accessing files have the condition file-error
. If we do not say here that a certain error symbol has additional error conditions, that means it has none.
As a special exception, the error symbol quit
does not have the condition error
, because quitting is not considered an error.
Most of these error symbols are defined in C (mainly data.c
), but some are defined in Lisp. For example, the file userlock.el
defines the file-locked
and file-supersession
errors. Several of the specialized Lisp libraries distributed with Emacs define their own error symbols. We do not attempt to list of all those here.
See Errors, for an explanation of how errors are generated and handled.
error
β
The message is βerror
β. See Errors.
quit
β
The message is βQuit
β. See Quitting.
args-out-of-range
β
The message is βArgs out of range
β. This happens when trying to access an element beyond the range of a sequence, buffer, or other container-like object. See Sequences Arrays Vectors, and see Text.
arith-error
β
The message is βArithmetic error
β. This occurs when trying to perform integer division by zero. See Numeric Conversions, and see Arithmetic Operations.
beginning-of-buffer
β
The message is βBeginning of buffer
β. See Character Motion.
buffer-read-only
β
The message is βBuffer is read-only
β. See Read Only Buffers.
circular-list
β
The message is βList contains a loop
β. This happens when a circular structure is encountered. See Circular Objects.
cl-assertion-failed
β
The message is βAssertion failed
β. This happens when the cl-assert
macro fails a test. See Assertions in Common Lisp Extensions.
coding-system-error
β
The message is βInvalid coding system
β. See Lisp and Coding Systems.
cyclic-function-indirection
β
The message is βSymbol's chain of function indirections contains a loop
β. See Function Indirection.
cyclic-variable-indirection
β
The message is βSymbol's chain of variable indirections contains a loop
β. See Variable Aliases.
dbus-error
β
The message is βD-Bus error
β. See Errors and Events in D-Bus integration in Emacs.
end-of-buffer
β
The message is βEnd of buffer
β. See Character Motion.
end-of-file
β
The message is βEnd of file during parsing
β. Note that this is not a subcategory of file-error
, because it pertains to the Lisp reader, not to file I/O. See Input Functions.
file-already-exists
β
This is a subcategory of file-error
. See Writing to Files.
file-date-error
β
This is a subcategory of file-error
. It occurs when copy-file
tries and fails to set the last-modification time of the output file. See Changing Files.
file-error
β
We do not list the error-strings of this error and its subcategories, because the error message is normally constructed from the data items alone when the error condition file-error
is present. Thus, the error-strings are not very relevant. However, these error symbols do have error-message
properties, and if no data is provided, the error-message
property is used. See Files.
file-missing
β
This is a subcategory of file-error
. It occurs when an operation attempts to act on a file that is missing. See Changing Files.
compression-error
β
This is a subcategory of file-error
, which results from problems handling a compressed file. See How Programs Do Loading.
file-locked
β
This is a subcategory of file-error
. See File Locks.
file-supersession
β
This is a subcategory of file-error
. See Modification Time.
file-notify-error
β
This is a subcategory of file-error
. It happens, when a file could not be watched for changes. See File Notifications.
ftp-error
β
This is a subcategory of file-error
, which results from problems in accessing a remote file using ftp. See Remote Files in The GNU Emacs Manual.
invalid-function
β
The message is βInvalid function
β. See Function Indirection.
invalid-read-syntax
β
The message is usually βInvalid read syntax
β. See Printed Representation. This error can also be raised by commands like eval-expression
when thereβs text following an expression. In that case, the message is βTrailing garbage following expression
β.
invalid-regexp
β
The message is βInvalid regexp
β. See Regular Expressions.
mark-inactive
β
The message is βThe mark is not active now
β. See The Mark.
no-catch
β
The message is βNo catch for tag
β. See Catch and Throw.
range-error
β
The message is Arithmetic range error
.
overflow-error
β
The message is βArithmetic overflow error
β. This is a subcategory of range-error
. This can happen with integers exceeding the integer-width
limit. See Integer Basics.
scan-error
β
The message is βScan error
β. This happens when certain syntax-parsing functions find invalid syntax or mismatched parentheses. Conventionally raised with three argument: a human-readable error message, the start of the obstacle that cannot be moved over, and the end of the obstacle. See List Motion, and see Parsing Expressions.
search-failed
β
The message is βSearch failed
β. See Searching and Matching.
setting-constant
β
The message is βAttempt to set a constant symbol
β. This happens when attempting to assign values to nil
, t
, most-positive-fixnum
, most-negative-fixnum
, and keyword symbols. It also happens when attempting to assign values to enable-multibyte-characters
and some other symbols whose direct assignment is not allowed for some reason. See Constant Variables.
text-read-only
β
The message is βText is read-only
β. This is a subcategory of buffer-read-only
. See Special Properties.
undefined-color
β
The message is βUndefined color
β. See Color Names.
user-error
β
The message is the empty string. See Signaling Errors.
user-search-failed
β
This is like βsearch-failed
β, but doesnβt trigger the debugger, like βuser-error
β. See Signaling Errors, and see Searching and Matching. This is used for searching in Info files, see Search Text in Info.
void-function
β
The message is βSymbol's function definition is void
β. See Function Cells.
void-variable
β
The message is βSymbol's value as variable is void
β. See Accessing Variables.
wrong-number-of-arguments
β
The message is βWrong number of arguments
β. See Argument List.
wrong-type-argument
β
The message is βWrong type argument
β. See Type Predicates.
unknown-image-type
β
The message is βCannot determine image type
β. See Images.