public class SwingExceptionListener extends AbstractScriptExceptionListener implements ErrorWindowListener
logger, stateSTATE_ABORTED, STATE_ERROR, STATE_OK| Constructor and Description |
|---|
SwingExceptionListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
aborted(java.lang.String message)
Fired when an abort is encountered.
|
int |
getDefaultCloseOperation()
Return the operation that will happen by default when the user initiates a "close" on the error window.
|
boolean |
isResettingWrapperOnDispose()
Return true if the associated ScriptWrapper must be resetState when closing the error window.
|
void |
notified(java.lang.String message,
char errorType,
java.lang.Throwable th)
Fired when any exception is encountered.
|
void |
notifiedFirst(ScriptRuntimeException exception,
char errorType,
java.lang.String extension)
Fired when the first exception is encountered while executing a script.
|
void |
resetWrapperOnDispose(boolean reset)
Set if the associated ScriptWrapper must be resetState when closing the error window.
|
void |
setDefaultCloseOperation(int operation)
Set the operation that will happen by default when the user initiates a "close" on the error window.
|
void |
windowClosed(ErrorScriptWindow window)
Fired when the error script window is closed.
|
getScriptLogger, getScriptState, resetState, setScriptLoggerpublic void setDefaultCloseOperation(int operation)
operation - the operation which should be performed when the user closes the error windowpublic void resetWrapperOnDispose(boolean reset)
resetWrapperOnDispose in interface ScriptExceptionListenerreset - true if the associated ScriptWrapper must be resetwhen closing the error windowpublic boolean isResettingWrapperOnDispose()
public int getDefaultCloseOperation()
public void notified(java.lang.String message,
char errorType,
java.lang.Throwable th)
notified in interface ScriptExceptionListenermessage - the messageerrorType - the error typeth - the ThrowableErrorTypepublic void notifiedFirst(ScriptRuntimeException exception, char errorType, java.lang.String extension)
notifiedFirst in interface ScriptExceptionListenerexception - the ScriptExceptionerrorType - the error typeextension - the language extensionErrorTypepublic void aborted(java.lang.String message)
ScriptExceptionListeneraborted in interface ScriptExceptionListenermessage - the abort messagepublic void windowClosed(ErrorScriptWindow window)
windowClosed in interface ErrorWindowListenerwindow - the ErrorScriptWindowCopyright © 2019-2025 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence