Class DefaultCommandExitHandler

java.lang.Object
com.atlassian.bitbucket.scm.DefaultCommandExitHandler
All Implemented Interfaces:
com.atlassian.bitbucket.scm.CommandExitHandler

public class DefaultCommandExitHandler extends Object implements com.atlassian.bitbucket.scm.CommandExitHandler
  • Field Details

    • i18nService

      protected final com.atlassian.bitbucket.i18n.I18nService i18nService
  • Constructor Details

    • DefaultCommandExitHandler

      public DefaultCommandExitHandler(@Nonnull com.atlassian.bitbucket.i18n.I18nService i18nService)
  • Method Details

    • onCancel

      public void onCancel(@Nonnull String command, int exitCode, @Nullable String stdErr, @Nullable Throwable thrown)
      Specified by:
      onCancel in interface com.atlassian.bitbucket.scm.CommandExitHandler
    • onExit

      public void onExit(@Nonnull String command, int exitCode, @Nullable String stdErr, @Nullable Throwable thrown)
      Specified by:
      onExit in interface com.atlassian.bitbucket.scm.CommandExitHandler
    • isError

      protected boolean isError(String command, int exitCode, String stdErr, Throwable thrown)
    • onError

      protected void onError(String command, int exitCode, String stdErr, Throwable thrown)