Package io.trino.plugin.deltalake
Enum DeltaLakeErrorCode
- java.lang.Object
-
- java.lang.Enum<DeltaLakeErrorCode>
-
- io.trino.plugin.deltalake.DeltaLakeErrorCode
-
- All Implemented Interfaces:
ErrorCodeSupplier,Serializable,Comparable<DeltaLakeErrorCode>
public enum DeltaLakeErrorCode extends Enum<DeltaLakeErrorCode> implements ErrorCodeSupplier
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DELTA_LAKE_BAD_DATADELTA_LAKE_BAD_WRITEDELTA_LAKE_INVALID_SCHEMADELTA_LAKE_INVALID_TABLE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorCodetoErrorCode()static DeltaLakeErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static DeltaLakeErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DELTA_LAKE_INVALID_SCHEMA
public static final DeltaLakeErrorCode DELTA_LAKE_INVALID_SCHEMA
-
DELTA_LAKE_INVALID_TABLE
public static final DeltaLakeErrorCode DELTA_LAKE_INVALID_TABLE
-
DELTA_LAKE_BAD_DATA
public static final DeltaLakeErrorCode DELTA_LAKE_BAD_DATA
-
DELTA_LAKE_BAD_WRITE
public static final DeltaLakeErrorCode DELTA_LAKE_BAD_WRITE
-
-
Method Detail
-
values
public static DeltaLakeErrorCode[] 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 (DeltaLakeErrorCode c : DeltaLakeErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DeltaLakeErrorCode 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
-
-