returns the Java Exception object that was thrown in the most recent call from the Wolfram Language to Java.


GetJavaException
returns the Java Exception object that was thrown in the most recent call from the Wolfram Language to Java.
Details and Options
- 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.
See Also
Tech Notes
Related Guides
Text
Wolfram Research (2007), GetJavaException, Wolfram Language function, https://reference.wolfram.com/language/JLink/ref/GetJavaException.html.
CMS
Wolfram Language. 2007. "GetJavaException." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/JLink/ref/GetJavaException.html.
APA
Wolfram Language. (2007). GetJavaException. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/JLink/ref/GetJavaException.html
BibTeX
@misc{reference.wolfram_2025_getjavaexception, author="Wolfram Research", title="{GetJavaException}", year="2007", howpublished="\url{https://reference.wolfram.com/language/JLink/ref/GetJavaException.html}", note=[Accessed: 08-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_getjavaexception, organization={Wolfram Research}, title={GetJavaException}, year={2007}, url={https://reference.wolfram.com/language/JLink/ref/GetJavaException.html}, note=[Accessed: 08-August-2025]}