From 09f4a3f040083d8832da366139fd3ee1b611cba6 Mon Sep 17 00:00:00 2001 From: Kamil Tekiela Date: Wed, 18 May 2022 17:56:55 +0100 Subject: [PATCH] Reword parameter description of set_exception_handler (#1004) --- reference/errorfunc/functions/set-exception-handler.xml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/reference/errorfunc/functions/set-exception-handler.xml b/reference/errorfunc/functions/set-exception-handler.xml index 1dd5a1527f..bf3956e7cc 100644 --- a/reference/errorfunc/functions/set-exception-handler.xml +++ b/reference/errorfunc/functions/set-exception-handler.xml @@ -30,9 +30,10 @@ The function to be called when an uncaught exception occurs. - Most errors are reported by throwing Error - exceptions, which will be caught by the handler as well. Both Error - and Exception implements the Throwable interface. + This handler function needs to accept one parameter, + which will be the Throwable object that was thrown. + Both Error and Exception + implement the Throwable interface. This is the handler signature: @@ -66,7 +67,7 @@ getMessage(), "\n"; }