Class AbstractSubCommand

java.lang.Object
org.brapi.schematools.cli.AbstractSubCommand
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
AnalyseSubCommand, CompareSubCommand, GenerateSubCommand, MarkdownSubCommand

public abstract class AbstractSubCommand extends Object implements Runnable
  • Constructor Details

    • AbstractSubCommand

      public AbstractSubCommand()
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • execute

      protected abstract void execute() throws IOException
      Throws:
      IOException
    • closeOut

      protected void closeOut()
    • handleException

      protected void handleException(Exception exception)
    • handleError

      protected void handleError(String message)
    • printStackTrace

      protected void printStackTrace(Exception exception)
    • printException

      protected void printException(Exception exception)
    • printError

      protected void printError(String errorMessage)
    • printErrors

      protected void printErrors(String message, Collection<org.brapi.schematools.core.response.Response.Error> allErrors)
    • printError

      protected void printError(org.brapi.schematools.core.response.Response.Error error)