public abstract class SecureDispatcher
extends java.lang.Object
implements java.lang.Runnable
EventDispatchThread
,
to wait for execution and then handle errors.Constructor and Description |
---|
SecureDispatcher() |
Modifier and Type | Method and Description |
---|---|
java.lang.Exception |
getException()
Returns the
Exception object that was catched during
the execution of runUnsafe() or null if the
method finished without errors. |
boolean |
hasException() |
void |
run()
Executes the
runUnsafe() method and catches all
exceptions for later processing. |
protected abstract void |
runUnsafe()
Wraps the execution of unsafe code.
|
public final void run()
runUnsafe()
method and catches all
exceptions for later processing.run
in interface java.lang.Runnable
Runnable.run()
protected abstract void runUnsafe() throws java.lang.Exception
java.lang.Exception
public java.lang.Exception getException()
Exception
object that was catched during
the execution of runUnsafe()
or null
if the
method finished without errors.public boolean hasException()