Package ai.expert.nlapi.exceptions
Enum NLApiErrorCode
- java.lang.Object
-
- java.lang.Enum<NLApiErrorCode>
-
- ai.expert.nlapi.exceptions.NLApiErrorCode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<NLApiErrorCode>
public enum NLApiErrorCode extends java.lang.Enum<NLApiErrorCode>
-
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBUNDLE_NAME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBusinessMessage(java.util.ResourceBundle bundle)intgetErrorCode()java.lang.StringgetErrorMessage()static NLApiErrorCodevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static NLApiErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DATA_PROCESSING_ERROR
public static final NLApiErrorCode DATA_PROCESSING_ERROR
-
DATA_EMPTY_ERROR
public static final NLApiErrorCode DATA_EMPTY_ERROR
-
AUTHENTICATION_ERROR
public static final NLApiErrorCode AUTHENTICATION_ERROR
-
CONNECTION_ERROR
public static final NLApiErrorCode CONNECTION_ERROR
-
EXECUTION_REQUEST_ERROR
public static final NLApiErrorCode EXECUTION_REQUEST_ERROR
-
AUTHORIZATION_ERROR
public static final NLApiErrorCode AUTHORIZATION_ERROR
-
REQUEST_UNKNOWN_LANGUAGE_ERROR
public static final NLApiErrorCode REQUEST_UNKNOWN_LANGUAGE_ERROR
-
REQUEST_UNKNOWN_CONTEXT_ERROR
public static final NLApiErrorCode REQUEST_UNKNOWN_CONTEXT_ERROR
-
REQUEST_UNKNOWN_TAXONOMY_ERROR
public static final NLApiErrorCode REQUEST_UNKNOWN_TAXONOMY_ERROR
-
PARSING_ERROR
public static final NLApiErrorCode PARSING_ERROR
-
-
Method Detail
-
values
public static NLApiErrorCode[] 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 (NLApiErrorCode c : NLApiErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NLApiErrorCode valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getErrorCode
public int getErrorCode()
-
getErrorMessage
public java.lang.String getErrorMessage()
-
getBusinessMessage
public java.lang.String getBusinessMessage(java.util.ResourceBundle bundle)
-
-