Package io.spring.javaformat.eclipse
Class Executor
java.lang.Object
io.spring.javaformat.eclipse.Executor
Utility to execute a block of code and deal with errors.
- Author:
- Phillip Webb
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrun(Executor.Command command) Run the given command, dealing with any exceptions.
-
Constructor Details
-
Executor
Create a newExecutorinstance with a specific message to use on failure.- Parameters:
failureMessage- the failure message
-
-
Method Details
-
run
Run the given command, dealing with any exceptions.- Parameters:
command- the command to run- Throws:
org.eclipse.core.runtime.CoreException- on error
-