Package aero.panasonic.inflight.services
Enum InFlight.Error
- java.lang.Object
-
- java.lang.Enum<InFlight.Error>
-
- aero.panasonic.inflight.services.InFlight.Error
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<InFlight.Error>
- Enclosing class:
- InFlight
public static enum InFlight.Error extends java.lang.Enum<InFlight.Error>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERROR_SDK_VERSION_INCOMPATIBLESDK version is incompatible with the service version.ERROR_SERVICE_INTERNALService side internal error.ERROR_SERVICE_UNAVAILABLEERROR_SYSTEM_DATE_INVALIDDevice Date seems to be invalid.ERROR_SYSTEM_VERSION_NOT_SUPPORTEDAndroid Platform OS version not supported.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetErrorId()static java.lang.StringgetErrorMessage(InFlight.Error error)Get details of the error.static InFlight.ErrorgetInFlightErrorById(int id)static InFlight.ErrorvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static InFlight.Error[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ERROR_SYSTEM_VERSION_NOT_SUPPORTED
public static final InFlight.Error ERROR_SYSTEM_VERSION_NOT_SUPPORTED
Android Platform OS version not supported.
-
ERROR_SYSTEM_DATE_INVALID
public static final InFlight.Error ERROR_SYSTEM_DATE_INVALID
Device Date seems to be invalid.
-
ERROR_SDK_VERSION_INCOMPATIBLE
public static final InFlight.Error ERROR_SDK_VERSION_INCOMPATIBLE
SDK version is incompatible with the service version.
-
ERROR_SERVICE_INTERNAL
public static final InFlight.Error ERROR_SERVICE_INTERNAL
Service side internal error.
-
ERROR_SERVICE_UNAVAILABLE
public static final InFlight.Error ERROR_SERVICE_UNAVAILABLE
-
-
Method Detail
-
values
public static InFlight.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 (InFlight.Error c : InFlight.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 InFlight.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(InFlight.Error error)
Get details of the error.- Parameters:
error-InFlight.Error- Error object.- Returns:
- A String message with error details.
-
getInFlightErrorById
public static InFlight.Error getInFlightErrorById(int id)
-
getErrorId
public int getErrorId()
-
-