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