Enum HDFSAdapterErrorCode
- java.lang.Object
-
- java.lang.Enum<HDFSAdapterErrorCode>
-
- io.mosip.kernel.fsadapter.hdfs.constant.HDFSAdapterErrorCode
-
- All Implemented Interfaces:
Serializable,Comparable<HDFSAdapterErrorCode>
public enum HDFSAdapterErrorCode extends Enum<HDFSAdapterErrorCode>
Constants for HDFSAdapter- Since:
- 1.0.0
- Author:
- Dharmesh Khandelwal
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FILE_NOT_FOUND_EXCEPTIONHDFS_ADAPTER_EXCEPTIONKEYTAB_FILE_NOT_FOUND_EXCEPTIONLOGIN_EXCEPTIONURI_SYNTAX_EXCEPTION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorCode()StringgetErrorMessage()static HDFSAdapterErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static HDFSAdapterErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HDFS_ADAPTER_EXCEPTION
public static final HDFSAdapterErrorCode HDFS_ADAPTER_EXCEPTION
-
FILE_NOT_FOUND_EXCEPTION
public static final HDFSAdapterErrorCode FILE_NOT_FOUND_EXCEPTION
-
URI_SYNTAX_EXCEPTION
public static final HDFSAdapterErrorCode URI_SYNTAX_EXCEPTION
-
LOGIN_EXCEPTION
public static final HDFSAdapterErrorCode LOGIN_EXCEPTION
-
KEYTAB_FILE_NOT_FOUND_EXCEPTION
public static final HDFSAdapterErrorCode KEYTAB_FILE_NOT_FOUND_EXCEPTION
-
-
Method Detail
-
values
public static HDFSAdapterErrorCode[] 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 (HDFSAdapterErrorCode c : HDFSAdapterErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HDFSAdapterErrorCode 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
-
getErrorCode
public String getErrorCode()
-
getErrorMessage
public String getErrorMessage()
-
-