Package io.trino.plugin.pinot
Enum PinotErrorCode
- java.lang.Object
-
- java.lang.Enum<PinotErrorCode>
-
- io.trino.plugin.pinot.PinotErrorCode
-
- All Implemented Interfaces:
ErrorCodeSupplier,Serializable,Comparable<PinotErrorCode>
public enum PinotErrorCode extends Enum<PinotErrorCode> implements ErrorCodeSupplier
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorCodetoErrorCode()static PinotErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static PinotErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PINOT_UNSUPPORTED_COLUMN_TYPE
public static final PinotErrorCode PINOT_UNSUPPORTED_COLUMN_TYPE
-
PINOT_AMBIGUOUS_TABLE_NAME
public static final PinotErrorCode PINOT_AMBIGUOUS_TABLE_NAME
-
PINOT_INSUFFICIENT_SERVER_RESPONSE
public static final PinotErrorCode PINOT_INSUFFICIENT_SERVER_RESPONSE
-
PINOT_EXCEPTION
public static final PinotErrorCode PINOT_EXCEPTION
-
PINOT_HTTP_ERROR
public static final PinotErrorCode PINOT_HTTP_ERROR
-
PINOT_UNABLE_TO_FIND_BROKER
public static final PinotErrorCode PINOT_UNABLE_TO_FIND_BROKER
-
PINOT_DECODE_ERROR
public static final PinotErrorCode PINOT_DECODE_ERROR
-
PINOT_INVALID_PQL_GENERATED
public static final PinotErrorCode PINOT_INVALID_PQL_GENERATED
-
PINOT_INVALID_CONFIGURATION
public static final PinotErrorCode PINOT_INVALID_CONFIGURATION
-
PINOT_UNCLASSIFIED_ERROR
public static final PinotErrorCode PINOT_UNCLASSIFIED_ERROR
-
-
Method Detail
-
values
public static PinotErrorCode[] 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 (PinotErrorCode c : PinotErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PinotErrorCode 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
-
-