Class Executor

java.lang.Object
io.spring.javaformat.eclipse.Executor

public class Executor extends Object
Utility to execute a block of code and deal with errors.
Author:
Phillip Webb
  • Constructor Details

    • Executor

      public Executor(String failureMessage)
      Create a new Executor instance with a specific message to use on failure.
      Parameters:
      failureMessage - the failure message
  • Method Details

    • 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