public enum NLApiErrorCode extends java.lang.Enum<NLApiErrorCode>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BUNDLE_NAME |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBusinessMessage(java.util.ResourceBundle bundle) |
int |
getErrorCode() |
java.lang.String |
getErrorMessage() |
static NLApiErrorCode |
valueOf(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.
|
public static final NLApiErrorCode DATA_PROCESSING_ERROR
public static final NLApiErrorCode DATA_EMPTY_ERROR
public static final NLApiErrorCode AUTHENTICATION_ERROR
public static final NLApiErrorCode CONNECTION_ERROR
public static final NLApiErrorCode EXECUTION_REQUEST_ERROR
public static final NLApiErrorCode AUTHORIZATION_ERROR
public static final NLApiErrorCode REQUEST_UNKNOWN_LANGUAGE_ERROR
public static final NLApiErrorCode REQUEST_UNKNOWN_CONTEXT_ERROR
public static final NLApiErrorCode REQUEST_UNKNOWN_TAXONOMY_ERROR
public static final NLApiErrorCode PARSING_ERROR
public static NLApiErrorCode[] values()
for (NLApiErrorCode c : NLApiErrorCode.values()) System.out.println(c);
public static NLApiErrorCode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getErrorCode()
public java.lang.String getErrorMessage()
public java.lang.String getBusinessMessage(java.util.ResourceBundle bundle)