Enum Class CommandResult

java.lang.Object
java.lang.Enum<CommandResult>
com.atlassian.bitbucket.scm.CommandResult
All Implemented Interfaces:
Serializable, Comparable<CommandResult>, Constable

public enum CommandResult extends Enum<CommandResult>
Enumerates the possible results of running a command.
  • Enum Constant Details

    • CANCELED

      public static final CommandResult CANCELED
      The command was canceled, either by the requester or because it timed out. The process of canceling the command may have also caused other failures. If so, the system is ignoring them.
    • FAILED

      public static final CommandResult FAILED
      The command failed. This may mean it was never started due to environment or resource problems, or that it started and encountered an error during execution.
    • SUCCEEDED

      public static final CommandResult SUCCEEDED
      The command succeeded.
  • Method Details

    • values

      public static CommandResult[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CommandResult valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null