JLink`
JLink`

JavaThrow

JavaThrow["exception"]

causes an exception of the specified class to be thrown in the Java thread that called the Wolfram Language program in which JavaThrow occurred.

JavaThrow["exception","message"]

specifies an optional detail message for the exception.

JavaThrow[object]

causes the specified Java Exception object to be thrown.

Details and Options

  • To use JavaThrow, you first need to load J/Link using Needs["JLink`"].
  • JavaThrow is a specialized function that few programmers will have any use for.
  • It is up to the user to ensure that the exception being created has an appropriate constructor.
Wolfram Research (2007), JavaThrow, Wolfram Language function, https://reference.wolfram.com/language/JLink/ref/JavaThrow.html.

Text

Wolfram Research (2007), JavaThrow, Wolfram Language function, https://reference.wolfram.com/language/JLink/ref/JavaThrow.html.

CMS

Wolfram Language. 2007. "JavaThrow." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/JLink/ref/JavaThrow.html.

APA

Wolfram Language. (2007). JavaThrow. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/JLink/ref/JavaThrow.html

BibTeX

@misc{reference.wolfram_2022_javathrow, author="Wolfram Research", title="{JavaThrow}", year="2007", howpublished="\url{https://reference.wolfram.com/language/JLink/ref/JavaThrow.html}", note=[Accessed: 09-August-2022 ]}

BibLaTeX

@online{reference.wolfram_2022_javathrow, organization={Wolfram Research}, title={JavaThrow}, year={2007}, url={https://reference.wolfram.com/language/JLink/ref/JavaThrow.html}, note=[Accessed: 09-August-2022 ]}