Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'Throw an Exception' topicStudent Support Forum > General > "Throw an Exception"

Help | Reply To Topic
Author Comment/Response
Mark Harrison
10/03/07 10:53am

I’m using Mathematica version 5.2.

Is there anyway in Mathematica to throw a structured exception through the .NetLink to a .Net application?

In my Mathematica module, I have called the Throw function and this works as expected if I call the function from a notebook file but in a .Net application an exception is not being thrown.

After calling my function that is meant to Throw the exception the LastError property is still set to null and the ErrorMessage property is still set to “Everything is Ok”. Is the Throw method meant to throw an exception in the .Net application? If not, how can I throw an exception?

URL: ,
Help | Reply To Topic