On the other hand, when I wrap the function call and try to get information out of the error object:
Code: Select all
Catch e {
msg := "An exception bubbled up to the top level.`n`n"
msg .= e.message
msg .= "`n`nError in " e.What
msg .= "`nwhich was called at line " . e.Line
msg .= "`nof " . e.File
msg .= "`n`nExtra information if any:`n" . e.Extra
etc.
Is there a way to get the same useful lines about where the error was found displayed during an unhandled crash via error handling, so they can be shown?An exception bubbled up to the top level.
Can't create control.
Error in Gui
which was called at line 1525
of C:\MyScript.exe
Extra information if any:
At the moment, the information is of so little help for debugging that I prefer to leave the error unhandled.
Sorry if this is a basic question!