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.