@FunctionalInterface public interface ISafeRunnable
This interface can be used without OSGi running.
Clients may implement this interface.
SafeRunner.run(ISafeRunnable)
Modifier and Type | Method and Description |
---|---|
default void |
handleException(Throwable exception)
Handles an exception thrown by this runnable's
run()
method. |
void |
run()
Runs this runnable.
|
void run() throws Exception
handleException(java.lang.Throwable)
method.Exception
- if a problem occurred while running this methodSafeRunner.run(ISafeRunnable)
default void handleException(Throwable exception)
run()
method. The processing done here should be specific to the
particular use case for this runnable. Generalized exception
processing, including logging in the Platform's log, is done by
the SafeRunner
.
All exceptions from the run()
method are passed to this
method, along with certain Error
types that are typically
caused by programming errors in the untrusted code being run.
exception
- an exception which occurred during processing
the body of this runnable (i.e., in run()
)SafeRunner.run(ISafeRunnable)
Copyright (c) 2000, 2017 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.