Enum Recommendation.Error
- java.lang.Object
-
- java.lang.Enum<Recommendation.Error>
-
- aero.panasonic.inflight.services.recommendation.v1.Recommendation.Error
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Recommendation.Error>
- Enclosing class:
- Recommendation
public static enum Recommendation.Error extends java.lang.Enum<Recommendation.Error>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERROR_BAD_REQUESTThe request has missing or incorrect parameters.ERROR_BAD_RESPONSEThe request has failed because the server returned an unexpected response.ERROR_CONNECTION_ERRORThe request has failed due to a network connection error.ERROR_INTERNALThe request has failed because of unexpected internal error.ERROR_SERVICE_NOT_FOUNDThe request has failed because the service is 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 Recommendation.ErrorgetErrorById(int id)intgetErrorId()static java.lang.StringgetErrorMessage(Recommendation.Error error)static Recommendation.ErrorvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Recommendation.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 Recommendation.Error ERROR_UNKNOWN
The request has failed due to an unknown error.
-
ERROR_BAD_REQUEST
public static final Recommendation.Error ERROR_BAD_REQUEST
The request has missing or incorrect parameters.
-
ERROR_SERVICE_NOT_FOUND
public static final Recommendation.Error ERROR_SERVICE_NOT_FOUND
The request has failed because the service is unavailable.
-
ERROR_INTERNAL
public static final Recommendation.Error ERROR_INTERNAL
The request has failed because of unexpected internal error.
-
ERROR_BAD_RESPONSE
public static final Recommendation.Error ERROR_BAD_RESPONSE
The request has failed because the server returned an unexpected response.
-
ERROR_CONNECTION_ERROR
public static final Recommendation.Error ERROR_CONNECTION_ERROR
The request has failed due to a network connection error.
-
-
Method Detail
-
values
public static Recommendation.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 (Recommendation.Error c : Recommendation.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 Recommendation.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(Recommendation.Error error)
-
getErrorId
public int getErrorId()
-
getErrorById
public static Recommendation.Error getErrorById(int id)
-
-