diff options
| author | Stefan Monnier | 2013-08-09 17:22:44 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2013-08-09 17:22:44 -0400 |
| commit | 54bd972f159fb8c25b4f4042ac6db5da557d9108 (patch) | |
| tree | 02debb972eec68ea4520474aca74d54843f0d708 /doc/lispref/errors.texi | |
| parent | 14ba08227d9272a34a0a95d20640f4bbdd0b6033 (diff) | |
| download | emacs-54bd972f159fb8c25b4f4042ac6db5da557d9108.tar.gz emacs-54bd972f159fb8c25b4f4042ac6db5da557d9108.zip | |
* lisp/subr.el (define-error): New function.
* doc/lispref/control.texi (Signaling Errors): Refer to define-error.
(Error Symbols): Add `define-error'.
* doc/lispref/errors.texi (Standard Errors): Don't refer to `error-conditions'.
* lisp/progmodes/ada-xref.el (ada-error-file-not-found): Rename from
error-file-not-found and define with define-error.
* lisp/emacs-lisp/cl-lib.el (cl-assertion-failed): Move here from subr.el
and define with define-error.
* lisp/userlock.el (file-locked, file-supersession):
* lisp/simple.el (mark-inactive):
* lisp/progmodes/js.el (js-moz-bad-rpc, js-js-error):
* lisp/progmodes/ada-mode.el (ada-mode-errors):
* lisp/play/life.el (life-extinct):
* lisp/nxml/xsd-regexp.el (xsdre-invalid-regexp, xsdre-parse-error):
* lisp/nxml/xmltok.el (xmltok-markup-declaration-parse-error):
* lisp/nxml/rng-util.el (rng-error):
* lisp/nxml/rng-uri.el (rng-uri-error):
* lisp/nxml/rng-match.el (rng-compile-error):
* lisp/nxml/rng-cmpct.el (rng-c-incorrect-schema):
* lisp/nxml/nxml-util.el (nxml-error, nxml-file-parse-error):
* lisp/nxml/nxml-rap.el (nxml-scan-error):
* lisp/nxml/nxml-outln.el (nxml-outline-error):
* lisp/net/soap-client.el (soap-error):
* lisp/net/gnutls.el (gnutls-error):
* lisp/net/ange-ftp.el (ftp-error):
* lisp/mpc.el (mpc-proc-error):
* lisp/json.el (json-error, json-readtable-error, json-unknown-keyword)
(json-number-format, json-string-escape, json-string-format)
(json-key-format, json-object-format):
* lisp/jka-compr.el (compression-error):
* lisp/international/quail.el (quail-error):
* lisp/international/kkc.el (kkc-error):
* lisp/emacs-lisp/ert.el (ert-test-failed):
* lisp/calc/calc.el (calc-error, inexact-result, math-overflow)
(math-underflow):
* lisp/bookmark.el (bookmark-error-no-filename):
* lisp/epg.el (epg-error): Define with define-error.
Diffstat (limited to 'doc/lispref/errors.texi')
| -rw-r--r-- | doc/lispref/errors.texi | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/doc/lispref/errors.texi b/doc/lispref/errors.texi index 87cfcfa532c..8a10fbf0c47 100644 --- a/doc/lispref/errors.texi +++ b/doc/lispref/errors.texi | |||
| @@ -7,12 +7,11 @@ | |||
| 7 | @appendix Standard Errors | 7 | @appendix Standard Errors |
| 8 | @cindex standard errors | 8 | @cindex standard errors |
| 9 | 9 | ||
| 10 | Here is a list of the more important error symbols in standard Emacs, | 10 | Here is a list of the more important error symbols in standard Emacs, grouped |
| 11 | grouped by concept. The list includes each symbol's message (on the | 11 | by concept. The list includes each symbol's message and a cross reference |
| 12 | @code{error-message} property of the symbol) and a cross reference to a | 12 | to a description of how the error can occur. |
| 13 | description of how the error can occur. | ||
| 14 | 13 | ||
| 15 | Each error symbol has an @code{error-conditions} property that is a | 14 | Each error symbol has an set of parent error conditions that is a |
| 16 | list of symbols. Normally this list includes the error symbol itself | 15 | list of symbols. Normally this list includes the error symbol itself |
| 17 | and the symbol @code{error}. Occasionally it includes additional | 16 | and the symbol @code{error}. Occasionally it includes additional |
| 18 | symbols, which are intermediate classifications, narrower than | 17 | symbols, which are intermediate classifications, narrower than |
| @@ -24,8 +23,6 @@ conditions, that means it has none. | |||
| 24 | As a special exception, the error symbol @code{quit} does not have the | 23 | As a special exception, the error symbol @code{quit} does not have the |
| 25 | condition @code{error}, because quitting is not considered an error. | 24 | condition @code{error}, because quitting is not considered an error. |
| 26 | 25 | ||
| 27 | @c You can grep for "(put 'foo 'error-conditions ...) to find | ||
| 28 | @c examples defined in Lisp. E.g., soap-client.el, sasl.el. | ||
| 29 | Most of these error symbols are defined in C (mainly @file{data.c}), | 26 | Most of these error symbols are defined in C (mainly @file{data.c}), |
| 30 | but some are defined in Lisp. For example, the file @file{userlock.el} | 27 | but some are defined in Lisp. For example, the file @file{userlock.el} |
| 31 | defines the @code{file-locked} and @code{file-supersession} errors. | 28 | defines the @code{file-locked} and @code{file-supersession} errors. |