Skip to content

Commit 6da331b

Browse files
committed
doc
1 parent d7e1778 commit 6da331b

4 files changed

Lines changed: 18 additions & 5 deletions

File tree

README

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,6 +1231,11 @@ dropped.
12311231
handlers set up by DEFTEST or WITH-TEST, or when their
12321232
*DEBUGGER-HOOK* is invoked with a condition that's not an EVENT.
12331233

1234+
Note that if NESTED-CONDITION (the original CL:ERROR) has restarts
1235+
associated with it, these are not going to be
1236+
associated with its UNHANDLED-ERROR condition, which may restrict
1237+
debugger the list of available restarts in the debugger.
1238+
12341239
- [reader] NESTED-CONDITION UNHANDLED-ERROR (:CONDITION = 'NIL)
12351240

12361241
- [reader] BACKTRACE-OF UNHANDLED-ERROR (:BACKTRACE = 'NIL)

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1524,6 +1524,11 @@ dropped.
15241524
Signalled when a [`CL:ERROR`][d162] condition reaches the
15251525
handlers set up by [`DEFTEST`][e7ca] or [`WITH-TEST`][8f5d], or when their
15261526
[`*DEBUGGER-HOOK*`][1cdc] is invoked with a condition that's not an [`EVENT`][955d].
1527+
1528+
Note that if [`NESTED-CONDITION`][0aad] (the original `CL:ERROR`) has restarts
1529+
[associated][bba7] with it, these are not going to be
1530+
associated with its [`UNHANDLED-ERROR`][8f78] condition, which may restrict
1531+
debugger the list of available restarts in the debugger.
15271532
15281533
<a id="x-28TRY-3ANESTED-CONDITION-20-28MGL-PAX-3AREADER-20TRY-3AUNHANDLED-ERROR-29-29"></a>
15291534
@@ -3620,6 +3625,7 @@ SBCL.
36203625
[06c2]: #x-28TRY-3AEXPECTED-VERDICT-SUCCESS-20CONDITION-29 "TRY:EXPECTED-VERDICT-SUCCESS CONDITION"
36213626
[0743]: #x-28TRY-3A-40WRITING-AUTOMATIC-CAPTURE-RULES-20MGL-PAX-3ASECTION-29 "Writing Automatic Capture Rules"
36223627
[0992]: #x-28TRY-3ADISMISSAL-20CONDITION-29 "TRY:DISMISSAL CONDITION"
3628+
[0aad]: #x-28TRY-3ANESTED-CONDITION-20-28MGL-PAX-3AREADER-20TRY-3AUNHANDLED-ERROR-29-29 "TRY:NESTED-CONDITION (MGL-PAX:READER TRY:UNHANDLED-ERROR)"
36233629
[0c39]: #x-28TRY-3A-2ATRY-COLLECT-2A-20VARIABLE-29 "TRY:*TRY-COLLECT* VARIABLE"
36243630
[0d57]: http://www.lispworks.com/documentation/HyperSpec/Body/t_short_.htm "DOUBLE-FLOAT (MGL-PAX:CLHS TYPE)"
36253631
[0d7a]: #x-28TRY-3A-40TRYVAR-20MGL-PAX-3AGLOSSARY-TERM-29 "Try var"
@@ -3757,6 +3763,7 @@ SBCL.
37573763
[b949]: #x-28TRY-3A-40TUTORIAL-20MGL-PAX-3ASECTION-29 "Tutorial"
37583764
[b94a]: http://www.lispworks.com/documentation/HyperSpec/Body/f_mismat.htm "MISMATCH (MGL-PAX:CLHS FUNCTION)"
37593765
[bb56]: #x-28TRY-3A-40CHECKS-20MGL-PAX-3ASECTION-29 "Checks"
3766+
[bba7]: http://www.lispworks.com/documentation/HyperSpec/Body/09_adbd.htm "\"9.1.4.2.4\" (MGL-PAX:CLHS MGL-PAX:SECTION)"
37603767
[c1f6]: #x-28TRY-3A-25-25-20MACROLET-29 "TRY:%% MACROLET"
37613768
[c3a0]: http://www.lispworks.com/documentation/HyperSpec/Body/f_eq_sle.htm "< (MGL-PAX:CLHS FUNCTION)"
37623769
[c759]: #x-28TRY-3A-40GLOSSARY-20MGL-PAX-3ASECTION-29 "Glossary"

TODO.org

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,6 @@ cannot be decided automatically.
5757
* MAYBE (try package): list-package-tests returns those with required args
5858
Provide opt out from LIST-ALL-PACKAGE-TESTS?
5959
Maybe tags?
60-
* invoking the debugger on UNHANDLED-ERROR is suboptimal
61-
Restarts associated with the original ERROR condition that is
62-
resignalled as UNHANDLED-ERROR are not visible. Maybe it would be
63-
better to invoke the debugger on the actual ERROR.
6460
* count skipped trials in parent?
6561
There should be a trace of what happened in the counts.
6662
* MAYBE improve readability of backtrace

src/error.lisp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@
3232
*DEBUGGER-HOOK*, NIL if it was caught by its ERROR handler."))
3333
(:documentation "Signalled when a CL:ERROR condition reaches the
3434
handlers set up by DEFTEST or WITH-TEST, or when their
35-
*DEBUGGER-HOOK* is invoked with a condition that's not an EVENT."))
35+
*DEBUGGER-HOOK* is invoked with a condition that's not an EVENT.
36+
37+
Note that if NESTED-CONDITION (the original CL:ERROR) has restarts
38+
[associated][9.1.4.2.4 clhs] with it, these are not going to be
39+
associated with its UNHANDLED-ERROR condition, which may restrict
40+
debugger the list of available restarts in the debugger."))
3641

3742
(define-condition nlx (error*)
3843
((extra-message :initarg :extra-message :reader extra-message))

0 commit comments

Comments
 (0)