COMException

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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
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