Enum Class OdysseyConstants.ErrorCodes

java.lang.Object
java.lang.Enum<OdysseyConstants.ErrorCodes>
io.confluent.kafka.odyssey.OdysseyConstants.ErrorCodes
All Implemented Interfaces:
Serializable, Comparable<OdysseyConstants.ErrorCodes>, Constable
Enclosing class:
OdysseyConstants

public static enum OdysseyConstants.ErrorCodes extends Enum<OdysseyConstants.ErrorCodes>
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.

  • Enum Constant Details

  • Method Details

    • values

      public static OdysseyConstants.ErrorCodes[] 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

      public static OdysseyConstants.ErrorCodes valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • code

      public int code()