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"; }