Enum BambooSpecsPublishingException.ErrorType
- java.lang.Object
-
- java.lang.Enum<BambooSpecsPublishingException.ErrorType>
-
- com.atlassian.bamboo.specs.api.exceptions.BambooSpecsPublishingException.ErrorType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BambooSpecsPublishingException.ErrorType>
- Enclosing class:
- BambooSpecsPublishingException
public static enum BambooSpecsPublishingException.ErrorType extends java.lang.Enum<BambooSpecsPublishingException.ErrorType>
Known possible failure types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONNECTION_ERRORUsed when establishing connection with Bamboo was unsuccessful.PROTOCOL_ERRORIndicates that an error with network protocol was encountered while connecting to Bamboo, e.g.UNAUTHORIZEDWhen the credentials used to contact Bamboo were invalid.UNKNOWN_HOSTUsed whenever Bamboo was unreachable (server not found).
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BambooSpecsPublishingException.ErrorTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static BambooSpecsPublishingException.ErrorType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN_HOST
public static final BambooSpecsPublishingException.ErrorType UNKNOWN_HOST
Used whenever Bamboo was unreachable (server not found).
-
CONNECTION_ERROR
public static final BambooSpecsPublishingException.ErrorType CONNECTION_ERROR
Used when establishing connection with Bamboo was unsuccessful. May indicate invalid server URL (e.g. wrong port).
-
PROTOCOL_ERROR
public static final BambooSpecsPublishingException.ErrorType PROTOCOL_ERROR
Indicates that an error with network protocol was encountered while connecting to Bamboo, e.g. an unsupported protocol was used instead of HTTP(S).
-
UNAUTHORIZED
public static final BambooSpecsPublishingException.ErrorType UNAUTHORIZED
When the credentials used to contact Bamboo were invalid.
-
-
Method Detail
-
values
public static BambooSpecsPublishingException.ErrorType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BambooSpecsPublishingException.ErrorType c : BambooSpecsPublishingException.ErrorType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BambooSpecsPublishingException.ErrorType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-