From Xojo Documentation

Class (inherits from RuntimeException)

This exception occurs for a variety of reasons, such as errors in parsing XML. See the Message and ErrorNumber properties of the RuntimeException class for information about the error.

ErrorNumber Message Reason fa-lock-32.png
Line Node
Stack StackFrames

Sample Code

This example prompts the user to choose an XML file to load catches an exception when an invalid XML file is selected:

Var xmlFile As FolderItem
xmlFile = FolderItem.ShowOpenFileDialog("")

If xmlFile <> Nil Then
Var xml As New XmlDocument

Catch e As XmlException
MessageBox("XML error: " + e.Message)
End Try
End If

See Also

RuntimeException class.