public class SwingExceptionListener extends AbstractScriptExceptionListener implements ErrorWindowListener
logger, state
STATE_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, setScriptLogger
public 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 ScriptExceptionListener
reset
- 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 ScriptExceptionListener
message
- the messageerrorType
- the error typeth
- the ThrowableErrorType
public void notifiedFirst(ScriptRuntimeException exception, char errorType, java.lang.String extension)
notifiedFirst
in interface ScriptExceptionListener
exception
- the ScriptExceptionerrorType
- the error typeextension
- the language extensionErrorType
public void aborted(java.lang.String message)
ScriptExceptionListener
aborted
in interface ScriptExceptionListener
message
- the abort messagepublic void windowClosed(ErrorScriptWindow window)
windowClosed
in interface ErrorWindowListener
window
- the ErrorScriptWindowCopyright © 2019-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence