Package io.spring.javaformat.eclipse
Class Executor
- java.lang.Object
-
- io.spring.javaformat.eclipse.Executor
-
public class Executor extends java.lang.ObjectUtility to execute a block of code and deal with errors.- Author:
- Phillip Webb
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceExecutor.CommandA command that can be run.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun(Executor.Command command)Run the given command, dealing with any exceptions.
-
-
-
Constructor Detail
-
Executor
public Executor(java.lang.String failureMessage)
Create a newExecutorinstance with a specific message to use on failure.- Parameters:
failureMessage- the failure message
-
-
Method Detail
-
run
public void run(Executor.Command command) throws org.eclipse.core.runtime.CoreException
Run the given command, dealing with any exceptions.- Parameters:
command- the command to run- Throws:
org.eclipse.core.runtime.CoreException- on error
-
-