JavaThrow

JavaThrow["exception"]
causes an exception of the specified class to be thrown in the Java thread that called the Mathematica 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.
  • 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.
© 2008 Wolfram Research, Inc. japanese.gif