Enum ContentDiscovery.Error
- java.lang.Object
-
- java.lang.Enum<ContentDiscovery.Error>
-
- aero.panasonic.inflight.services.contentdiscovery.v2.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_RESPONSERequest has failed due to an unexpected error from the server.ERROR_CONNECTION_ERRORRequest has failed due to a network connection error.ERROR_SERVICE_NOT_FOUNDRequest has failed due to the service being unavailable.ERROR_UNKNOWNRequest has failed due to an unknown error.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContentDiscovery.ErrorgetErrorById(int id)static java.lang.StringgetErrorMessage(ContentDiscovery.Error error)Gets details of the error.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
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
Request has failed due to the service being unavailable.
-
ERROR_BAD_RESPONSE
public static final ContentDiscovery.Error ERROR_BAD_RESPONSE
Request has failed due to an unexpected error from the server.
-
ERROR_CONNECTION_ERROR
public static final ContentDiscovery.Error ERROR_CONNECTION_ERROR
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
-
getErrorById
public static ContentDiscovery.Error getErrorById(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:
- String message with error details.
-
getValue
public int getValue()
-
-