Enum ImageFetcher.Error

    • Enum Constant Detail

      • ERROR_SERVER_ERROR

        public static final ImageFetcher.Error ERROR_SERVER_ERROR
        General server side error.
      • ERROR_SERVICE_NOT_FOUND

        public static final ImageFetcher.Error ERROR_SERVICE_NOT_FOUND
        Service not found
      • ERROR_IMAGE_NOT_FOUND

        public static final ImageFetcher.Error ERROR_IMAGE_NOT_FOUND
        Metadata resource is not found, please check your request.
    • Method Detail

      • values

        public static ImageFetcher.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 (ImageFetcher.Error c : ImageFetcher.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 ImageFetcher.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​(ImageFetcher.Error error)
        Get details of the error.
        Parameters:
        error - ImageFetcher.Error - MetadataError object.
        Returns:
        A String message with error details.
      • getMetadataErrorById

        public static ImageFetcher.Error getMetadataErrorById​(int id)
      • getErrorId

        public int getErrorId()