Enum Recommendation.Error

    • Enum Constant Detail

      • ERROR_UNKNOWN

        public static final Recommendation.Error ERROR_UNKNOWN
        The request has failed due to an unknown error.
      • ERROR_BAD_REQUEST

        public static final Recommendation.Error ERROR_BAD_REQUEST
        The request has missing or incorrect parameters.
      • ERROR_SERVICE_NOT_FOUND

        public static final Recommendation.Error ERROR_SERVICE_NOT_FOUND
        The request has failed because the service is unavailable.
      • ERROR_INTERNAL

        public static final Recommendation.Error ERROR_INTERNAL
        The request has failed because of unexpected internal error.
      • ERROR_BAD_RESPONSE

        public static final Recommendation.Error ERROR_BAD_RESPONSE
        The request has failed because the server returned an unexpected response.
      • ERROR_CONNECTION_ERROR

        public static final Recommendation.Error ERROR_CONNECTION_ERROR
        The request has failed due to a network connection error.
    • Method Detail

      • values

        public static Recommendation.Error[] 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 (Recommendation.Error c : Recommendation.Error.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Recommendation.Error 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
      • getErrorId

        public int getErrorId()