summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorJean-Pierre Ledure <jp@ledure.be>2022-07-18 17:42:31 +0200
committerJean-Pierre Ledure <jp@ledure.be>2022-07-19 11:24:03 +0200
commit0a2d22ceac6236fc999db368cc6201c6153dd71b (patch)
treed66891b6443f2d1ee012f518119a5c0157aa554e /wizards
parent3a9d06eac4db5ac1595b8643a64d18c4a818ac96 (diff)
ScriptForge - (SF_Dialog) trap errors caused by dialog events
A dialog is started with the Execute() method. During its life span user scripts may be executed as a consequence of mouse clicks etc. When those scripts contain errors and they are not trapped; - in the actual situation, the error is detected by ScriptForge and considered as an internal error - this new commit considers the error as a user error. The help pages should be completed to promote the use of errors trapping inside scripts triggered by events. Change-Id: Iba3eefc75d305c17e6e1d9d416496882e0f816bb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137203 Tested-by: Jean-Pierre Ledure <jp@ledure.be> Reviewed-by: Jean-Pierre Ledure <jp@ledure.be> Tested-by: Jenkins
Diffstat (limited to 'wizards')
-rw-r--r--wizards/source/sfdialogs/SF_Dialog.xba2
1 files changed, 2 insertions, 0 deletions
diff --git a/wizards/source/sfdialogs/SF_Dialog.xba b/wizards/source/sfdialogs/SF_Dialog.xba
index da2afcb4a80e..4a6d1ae7a380 100644
--- a/wizards/source/sfdialogs/SF_Dialog.xba
+++ b/wizards/source/sfdialogs/SF_Dialog.xba
@@ -561,6 +561,8 @@ Finally:
ScriptForge.SF_Utils._ExitFunction(cstThisSub)
Exit Function
Catch:
+ &apos; When an error is caused by an event error, the location is unknown
+ SF_Exception.Raise(, &quot;?&quot;)
GoTo Finally
End Function &apos; SFDialogs.SF_Dialog.Execute