org.scripthelper.exceptions.ScriptExceptionListener
. By default exceptions will be shown on the error stream.
ScriptExceptionListener
has three methods: notified(String message, Throwable th)
method notifies the listener for any exception encountered during the execution of the scriptnotifiedFirst(ScriptRuntimeException exception, String extension)
method notifies the listener for the first exception encountered during the execution of the script. The provided notifiedFirst(ScriptRuntimeException
allows to get the StackTrace with optionnaly only the script stack elementsaborted(String message)
method notifies the listener for an abort of the scriptorg.scripthelper.swing.SwingExceptionListener.SwingExceptionListener
will show the StackTrace of the exception[1]
scriptHelperSwing.jar
in the classpath of your IDE to compile. You however don't need to put it on the classpath of your application, because scriptHelperSwing.jar
is referenced in javaXUL.jar
manifestScriptManager manager = new DefaultScriptManager(); manager.setScriptExceptionListener(new SwingExceptionListener());
scriptHelperSwing.jar
in the classpath of your IDE to compile. You however don't need to put it on the classpath of your application, because scriptHelperSwing.jar
is referenced in javaXUL.jar
manifestCopyright 2008-2020 Herve Girod. All Rights Reserved. Documentation and source under the LGPL licence