Next: , Previous: GNU Emacs Internals, Up: Top


Appendix C 標準のエラー

以下は、概念ごとにまとめた標準Emacsのエラーシンボルの完全な一覧です。 一覧には、各シンボルの(シンボルの属性error-messageにある)メッセージと そのようなエラーが生起する場面の記述への相互参照を示しました。

各エラーシンボルには、属性error-conditionsがあり、 これはシンボルのリストです。 通常、このリストは、エラーシンボルそのものとシンボルerrorを含みます。 しばしば、追加のシンボルも含みます。 それらは中間的な分類種別であり、errorより細分化したものですが、 エラーシンボルそのものよりは大分類です。 たとえば、ファイル参照に関するすべてのエラーには、 条件file-errorが入っています。 以下で、特定のエラーシンボルにおいて追加のシンボルを言及していないときには、 そのエラーには追加シンボルがないことを意味します。

特別な例外ですが、エラーシンボルquitには 条件errorがありません。 これは、中断(quit)をエラーとみなさないからです。

エラーが生起する場面とその処理方法については、See Errors

シンボル
文字列; 参照
error
"error"
see Errors
quit
"Quit"
see Quitting
args-out-of-range
"Args out of range"
see Sequences Arrays Vectors
arith-error
"Arithmetic error"
Numbers/%を参照。
beginning-of-buffer
"Beginning of buffer"
see Motion
buffer-read-only
"Buffer is read-only"
see Read Only Buffers
cyclic-function-indirection
"Symbol's chain of function indirections\
contains a loop"

see Function Indirection
end-of-buffer
"End of buffer"
see Motion
end-of-file
"End of file during parsing"
これはファイル入出力ではなくLispリーダに関連することなので、 file-errorではないことに注意。
see Input Functions
file-already-exists
これはfile-error
see Writing to Files
file-date-error
これはfile-errorの小分類。 copy-fileで、 出力ファイルの最終更新日付の設定に失敗すると生起する。
see Changing Files
file-error
このエラーとその小分類にはエラー文字列がない。 エラー条件file-errorがあると、 データ項目のみからエラーメッセージを作るからである。
see Files
file-locked
これはfile-error
see File Locks
file-supersession
これはfile-error
see Modification Time
invalid-function
"Invalid function"
see Classifying Lists
invalid-read-syntax
"Invalid read syntax"
see Input Functions
invalid-regexp
"Invalid regexp"
see Regular Expressions
mark-inactive
"Mark inactive"
see The Mark
no-catch
"No catch for tag"
see Catch and Throw
scan-error
"Scan error"
これは、構文解析関数が不正な構文や対応していない括弧を みつけると生起する。
List Motion、および、see Parsing Expressions
search-failed
"Search failed"
see Searching and Matching
setting-constant
"Attempt to set a constant symbol"
シンボルnilt、および、 ‘:’で始まる任意のシンボルは変更できない。
see Variables that Never Change
undefined-color
"Undefined color"
see Color Names
void-function
"Symbol's function definition is void"
see Function Cells
void-variable
"Symbol's value as variable is void"
see Accessing Variables
wrong-number-of-arguments
"Wrong number of arguments"
see Classifying Lists
wrong-type-argument
"Wrong type argument"
see Type Predicates

arith-errorの特別な場合に分類された以下の種類のエラーは、 数学関数を不正に使ったときに特定のシステムで生起します。

domain-error
"Arithmetic domain error"
see Math Functions
overflow-error
"Arithmetic overflow error"
see Math Functions
range-error
"Arithmetic range error"
see Math Functions
singularity-error
"Arithmetic singularity error"
see Math Functions
underflow-error
"Arithmetic underflow error"
see Math Functions