The exception thrown by methods in the IMathLink and IKernelLink interfaces when a link error occurs.
For a list of all members of this type, see MathLinkException Members.
System.Object
System.Exception
System.ApplicationException
Wolfram.NETLink.MathLinkException
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
MathLinkExceptions are mainly for errors that involve the low-level link itself. After you catch a MathLinkException, the first thing you should do is call ClearError to try to clear the error condition. If you do not, then the next IMathLink or IKernelLink method you call will throw an exception again.
For programmers familiar with the C-language MathLink API, the throwing of a MathLinkException is equivalent to a C-language API function returning a result code other than MLEOK. The ErrCode property gives the integer code associated with the error. These integer values include those defined in the C-language header file mathlink.h, and an additional .NET/Link-specific set of values defined in this class. Few programmers will have any use for these integer codes; much more relevant are the textual descriptions of the errors, available from the Message property.
Namespace: Wolfram.NETLink
Assembly: Wolfram.NETLink (in Wolfram.NETLink.dll)
MathLinkException Members | Wolfram.NETLink Namespace