Package com.yahoo.documentapi
Enum Class Result.ResultType
- All Implemented Interfaces:
Serializable
,Comparable<Result.ResultType>
,Constable
- Enclosing class:
- Result
The types that a Result can have.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe request failed, and retrying is pointless.The request was successful, no error information is attached.The request failed, but may be successful if retried at a later time. -
Method Summary
Modifier and TypeMethodDescriptionstatic Result.ResultType
Returns the enum constant of this class with the specified name.static Result.ResultType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUCCESS
The request was successful, no error information is attached. -
TRANSIENT_ERROR
The request failed, but may be successful if retried at a later time. -
FATAL_ERROR
The request failed, and retrying is pointless.
-
-
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
-