Enum NLApiErrorCode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<NLApiErrorCode>

    public enum NLApiErrorCode
    extends java.lang.Enum<NLApiErrorCode>
    • 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
    • Field Detail

      • BUNDLE_NAME

        public static final java.lang.String BUNDLE_NAME
    • 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 name
        java.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)