diff options
author | David Thompson <dthompson2@worcester.edu> | 2022-10-08 09:24:43 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2022-10-08 09:24:43 -0400 |
commit | f782e70390525fa2e5bfdf8e2ff249ece1640a98 (patch) | |
tree | f32636a96e590ec98d52d72c7e86ecc70ab18c45 /doc | |
parent | 1578a7025c3c70cbbdb110aa42125c9acb57aeda (diff) |
Update error handling to use Guile's new exception API.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api.texi | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/doc/api.texi b/doc/api.texi index bebef33..9ed9eff 100644 --- a/doc/api.texi +++ b/doc/api.texi @@ -290,22 +290,19 @@ values are: @end enumerate @item -@var{error}: Called with three arguments when an error occurs: +@var{error}: Called with two arguments when an error occurs: @enumerate @item -@var{stack}: The call stack at the point of error. +@var{exception}: The exception object. @item -@var{key}: The exception key. - -@item -@var{args}: The arguments thrown with the exception. +@var{stack}: The call stack at the point of the exception. @end enumerate -The default behavior is to re-throw the error. +If no error handler is specified, exceptions will simply be re-raised. @end itemize |