COMException

From Xojo Documentation

Class (inherits from RuntimeException)

A COM exception occurred. This exception is raised by classes generated through the IDE's Insert->ActiveX Component feature.

Properties
ErrorNumber Message Reason fa-lock-32.png
Methods
Stack StackFrames

Notes

When attempting to catch this exception in code, you must use the fully qualified name COM.COMException:

Try
Var wordApp As New Word.Application
wordApp.Help(255) // Non-existent help topic should throw an exception
Catch err As COM.COMException
MessageBox("That help topic does not exist.")
End Try