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.
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