Package io.trino.plugin.kafka
Enum KafkaErrorCode
- java.lang.Object
-
- java.lang.Enum<KafkaErrorCode>
-
- io.trino.plugin.kafka.KafkaErrorCode
-
- All Implemented Interfaces:
ErrorCodeSupplier,Serializable,Comparable<KafkaErrorCode>
public enum KafkaErrorCode extends Enum<KafkaErrorCode> implements ErrorCodeSupplier
-
-
Enum Constant Summary
Enum Constants Enum Constant Description KAFKA_PRODUCER_ERRORKAFKA_SCHEMA_ERRORKAFKA_SPLIT_ERRORSCHEMA_REGISTRY_AMBIGUOUS_SUBJECT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorCodetoErrorCode()static KafkaErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static KafkaErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
KAFKA_SPLIT_ERROR
public static final KafkaErrorCode KAFKA_SPLIT_ERROR
-
KAFKA_SCHEMA_ERROR
public static final KafkaErrorCode KAFKA_SCHEMA_ERROR
-
KAFKA_PRODUCER_ERROR
public static final KafkaErrorCode KAFKA_PRODUCER_ERROR
-
SCHEMA_REGISTRY_AMBIGUOUS_SUBJECT
public static final KafkaErrorCode SCHEMA_REGISTRY_AMBIGUOUS_SUBJECT
-
-
Method Detail
-
values
public static KafkaErrorCode[] 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 (KafkaErrorCode c : KafkaErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KafkaErrorCode valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
toErrorCode
public ErrorCode toErrorCode()
- Specified by:
toErrorCodein interfaceErrorCodeSupplier
-
-