diff options
author | Jean-Pierre Ledure <jp@ledure.be> | 2022-07-18 17:42:31 +0200 |
---|---|---|
committer | Jean-Pierre Ledure <jp@ledure.be> | 2022-07-19 11:24:03 +0200 |
commit | 0a2d22ceac6236fc999db368cc6201c6153dd71b (patch) | |
tree | d66891b6443f2d1ee012f518119a5c0157aa554e /wizards | |
parent | 3a9d06eac4db5ac1595b8643a64d18c4a818ac96 (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.xba | 2 |
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: + ' When an error is caused by an event error, the location is unknown + SF_Exception.Raise(, "?") GoTo Finally End Function ' SFDialogs.SF_Dialog.Execute |