Package io.opentelemetry.api.trace
Enum StatusCode
- All Implemented Interfaces:
Serializable
,Comparable<StatusCode>
,java.lang.constant.Constable
The set of canonical status codes. If new codes are added over time they must choose a numerical
value that does not collide with any previously used value.
-
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 StatusCode
Returns the enum constant of this type with the specified name.static StatusCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNSET
The default status. -
OK
The operation has been validated by an Application developers or Operator to have completed successfully. -
ERROR
The operation contains an error.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-