aboutsummaryrefslogtreecommitdiffstats
path: root/java/org/gnu
diff options
context:
space:
mode:
authorStefan Monnier2026-03-08 19:11:13 -0400
committerStefan Monnier2026-03-08 19:11:13 -0400
commit0df94040fcf76bb894cd24f7242fd40aba67bb3f (patch)
treeddb4819c9989f75c675af1f5d1e3ee6ec4b20d66 /java/org/gnu
parenta3dda7e5252f8fff33a60dc455c4a25ea5904edd (diff)
downloademacs-0df94040fcf76bb894cd24f7242fd40aba67bb3f.tar.gz
emacs-0df94040fcf76bb894cd24f7242fd40aba67bb3f.zip
Improve the error API
Define new functions to manipulate error descriptors and add support for `signal` to *re*signal a previous error. * src/eval.c (Fsignal): Make the second arg optional and document the possibility of passing a whole error descriptor to re-signal it. (signal_or_quit): Fix a few corner case issues when DATA is `nil` and ERROR_SYMBOL is an error descriptor. * lisp/subr.el (error-type-p, error--p, error-type, error-data) (error-has-type-p, error-slot-value): New function. * doc/lispref/control.texi (Handling Errors): Prefer "error descriptor" to "error description". Use the new single-arg call to `signal` to re-throw an error. Document `error-type`, `error-data` and `error-slot-value`. (Error Symbols): Document the new functions `error-type-p` and `error-has-type-p`.
Diffstat (limited to 'java/org/gnu')
0 files changed, 0 insertions, 0 deletions