Java Interface >

GetJavaException

GetJavaException[]
returns the Java Exception object that was thrown in the most recent call from Mathematica to Java.
  • To use GetJavaException, you first need to load J/Link using Needs["JLink`"].
  • GetJavaException returns Null if no exception was thrown in the most recent call.
  • GetJavaException can be used in conjunction with $JavaExceptionHandler to implement a custom exception-handling scheme in Mathematica.
© 2008 Wolfram Research, Inc. japanese.gif
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team