Error handling in .NET

XMS .NET exceptions are all derived from System.Exception. XMS method calls can throw specific XMS exceptions such as MessageFormatException, general XMSExceptions, or system exceptions such as NullReferenceException.

Write applications to catch any of these errors, either in specific catch blocks or in general System.Exception catch blocks, as appropriate to the applications requirements.