JLink`
JLink`
GetJavaException
returns the Java Exception object that was thrown in the most recent call from the Wolfram Language to Java.
Details
- 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 the Wolfram Language.