Enum Class OdysseyConstants.ErrorCodes
- All Implemented Interfaces:
Serializable, Comparable<OdysseyConstants.ErrorCodes>, Constable
- Enclosing class:
OdysseyConstants
Odyssey-owned error codes surfaced as the
schemaErrorCode on results; code()
is the integer value. Schema Registry's own error codes are not enumerated here — they are
passed through as raw integers from SR responses, and classified for metrics by HTTP-status
family (see SchemaManagementDependencyMetrics.ErrorClass).
ODYSSEY_ERROR sits at 50000, below Schema Registry's own 50001-50005 range, so a
reader of "Schema Error [<code>]" can tell an Odyssey-minted code from one Schema
Registry actually returned.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionintcode()static OdysseyConstants.ErrorCodesReturns the enum constant of this class with the specified name.static OdysseyConstants.ErrorCodes[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
ODYSSEY_ERROR
-
INVALID_ASSOCIATION_CONFIG
-
-
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
-
code
public int code()
-