Enum ImageFetcher.Error
- java.lang.Object
-
- java.lang.Enum<ImageFetcher.Error>
-
- aero.panasonic.inflight.services.image.v2.ImageFetcher.Error
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ImageFetcher.Error>
- Enclosing class:
- ImageFetcher
public static enum ImageFetcher.Error extends java.lang.Enum<ImageFetcher.Error>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERROR_IMAGE_NOT_FOUNDMetadata resource is not found, please check your request.ERROR_SERVER_ERRORGeneral server side error.ERROR_SERVICE_NOT_FOUNDService not found
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetErrorId()static java.lang.StringgetErrorMessage(ImageFetcher.Error error)Get details of the error.static ImageFetcher.ErrorgetMetadataErrorById(int id)static ImageFetcher.ErrorvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ImageFetcher.Error[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 namejava.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()
-
-