JLink`
JLink`

GetJavaException

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.
Wolfram Research (2007), GetJavaException, Wolfram Language function, https://reference.wolfram.com/language/JLink/ref/GetJavaException.html.

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_2023_getjavaexception, author="Wolfram Research", title="{GetJavaException}", year="2007", howpublished="\url{https://reference.wolfram.com/language/JLink/ref/GetJavaException.html}", note=[Accessed: 19-March-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_getjavaexception, organization={Wolfram Research}, title={GetJavaException}, year={2007}, url={https://reference.wolfram.com/language/JLink/ref/GetJavaException.html}, note=[Accessed: 19-March-2024 ]}