Enum ContentDiscovery.Error

    • Enum Constant Detail

      • ERROR_UNKNOWN

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

        public static final ContentDiscovery.Error ERROR_BAD_REQUEST
        The request was not successful due to a missing or invalid required field.
      • ERROR_SERVICE_NOT_FOUND

        public static final ContentDiscovery.Error ERROR_SERVICE_NOT_FOUND
        The request has failed due to the service being unavailable.
      • ERROR_INTERNAL_ERROR

        public static final ContentDiscovery.Error ERROR_INTERNAL_ERROR
        The request has failed due to an unexpected internal error.
      • ERROR_BAD_RESPONSE

        public static final ContentDiscovery.Error ERROR_BAD_RESPONSE
        The request has failed due to an unexpected error from the server.
      • ERROR_CONNECTION_ERROR

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

      • values

        public static ContentDiscovery.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 (ContentDiscovery.Error c : ContentDiscovery.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 ContentDiscovery.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
      • getErrorMessage

        public static java.lang.String getErrorMessage​(ContentDiscovery.Error error)
        Gets details of the error.
        Parameters:
        error - ContentDiscovery.Error Content Discovery Error object.
        Returns:
        A String message with error details.
      • getValue

        public int getValue()