Package com.atlassian.bitbucket.scm
Enum Class CommandResult
- All Implemented Interfaces:
Serializable
,Comparable<CommandResult>
,Constable
Enumerates the possible results of running a
command
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CommandResult
Returns the enum constant of this class with the specified name.static CommandResult[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
The command succeeded.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-