Enum ContentDiscovery.Error
- java.lang.Object
-
- java.lang.Enum<ContentDiscovery.Error>
-
- aero.panasonic.inflight.services.contentdiscovery.v1.ContentDiscovery.Error
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ContentDiscovery.Error>
- Enclosing class:
- ContentDiscovery
public static enum ContentDiscovery.Error extends java.lang.Enum<ContentDiscovery.Error>
Standard Error class for Content Discovery.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERROR_BAD_REQUESTThe request was not successful due to a missing or invalid required field.ERROR_BAD_RESPONSEThe request has failed due to an unexpected error from the server.ERROR_CONNECTION_ERRORThe request has failed due to a network connection error.ERROR_INTERNAL_ERRORThe request has failed due to an unexpected internal error.ERROR_SERVICE_NOT_FOUNDThe request has failed due to the service being unavailable.ERROR_UNKNOWNThe request has failed due to an unknown error.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetErrorMessage(ContentDiscovery.Error error)Gets details of the error.static ContentDiscovery.ErrorgetMetadataErrorById(int id)intgetValue()static ContentDiscovery.ErrorvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ContentDiscovery.Error[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 namejava.lang.NullPointerException- if the argument is null
-
getMetadataErrorById
public static ContentDiscovery.Error getMetadataErrorById(int id)
-
getErrorMessage
public static java.lang.String getErrorMessage(ContentDiscovery.Error error)
Gets details of the error.- Parameters:
error-ContentDiscovery.ErrorContent Discovery Error object.- Returns:
- A String message with error details.
-
getValue
public int getValue()
-
-