From f782e70390525fa2e5bfdf8e2ff249ece1640a98 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sat, 8 Oct 2022 09:24:43 -0400 Subject: Update error handling to use Guile's new exception API. --- doc/api.texi | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'doc') 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 -- cgit v1.2.3