Base Issue with Error Trapping

LO6.4.7.2 Win10 Hsql 2.51

Hi all,

Normally I don t have a problem with On Error Goto xyz and display some meaningful message
On this one - Screenshot I am at a loss because there is no code, the button simply opens the
selected file using the open doc/webpage option from the properties, which works fine if the
document exist.

If the document does not exist Lo throws up the message as shown which I would like to intercept and replace with a more
meaningful message.
Appreciate any pointers to how I can do that, thank you.