.NET/Link API Version 1.7 USE FRAMES

IKernelLink.LastError Property

Gets the Exception object that represents any exception detected during the last call of one of the "EvaluateTo" methods (EvaluateToInputForm, EvaluateToOutputForm, EvaluateToImage, EvaluateToTypeset).

[Visual Basic]
Property LastError As Exception
[C#]
System.Exception LastError {get;}

Remarks

For convenience, the "EvaluateTo" methods don't throw MathLinkException. Instead, they catch any such exceptions and simply return null if one occurred. Sometimes you want to see what the exact exception was when you get back a null result. The LastError property shows you that exception. Typically, it will be a MathLinkException, but there are some other rare cases.

See Also

IKernelLink Interface | Wolfram.NETLink Namespace | EvaluateToInputForm | EvaluateToOutputForm | EvaluateToImage | EvaluateToTypeset