Enum Pairing.Error
- java.lang.Object
-
- java.lang.Enum<Pairing.Error>
-
- aero.panasonic.inflight.services.pairing.v1.Pairing.Error
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Pairing.Error>
- Enclosing class:
- Pairing
public static enum Pairing.Error extends java.lang.Enum<Pairing.Error>
Error description for Pairing.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERROR_ACCESS_FORBIDDENThe request failed due to not authorized to access the service.SEAT_PAIRING_ERROR_DEVICE_ALREADY_PAIREDThe request failed due to the seatback monitor being already paired.SEAT_PAIRING_ERROR_INTERNALThe request failed due to an unknown internal error.SEAT_PAIRING_ERROR_SERVICE_NOT_FOUNDThe request failed due to the service not being avalable.SEAT_PAIRING_ERROR_UNKNOWNThe request failed due to an unknown error.SEAT_PARING_ERROR_BAD_RESPONSEThe request failed due to an unexpected response from server.SEAT_UNPAIRING_ERROR_BAD_RESPONSEThe request failed due to the server returning an unexpected response.SEAT_UNPAIRING_ERROR_INTERNAL_ERRORThe request failed due to an unknown internal error.SEAT_UNPAIRING_ERROR_NOT_PAIREDThe request failed due to the seatback monitor not being paired.SEAT_UNPAIRING_ERROR_SERVICE_NOT_FOUNDThe request failed due to the service not being avalable.SEAT_UNPAIRING_ERROR_UNKNOWNThe request failed due to an unknown error.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetErrorId()Gets the error by ID.static java.lang.StringgetErrorMessage(Pairing.Error error)Gets details of the error.static Pairing.ErrorgetSeatPairingErrorById(int id)Gets the error by ID.static Pairing.ErrorvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Pairing.Error[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SEAT_PAIRING_ERROR_UNKNOWN
public static final Pairing.Error SEAT_PAIRING_ERROR_UNKNOWN
The request failed due to an unknown error.
-
SEAT_PAIRING_ERROR_DEVICE_ALREADY_PAIRED
public static final Pairing.Error SEAT_PAIRING_ERROR_DEVICE_ALREADY_PAIRED
The request failed due to the seatback monitor being already paired. Please unpair first, then pair.
-
SEAT_PAIRING_ERROR_INTERNAL
public static final Pairing.Error SEAT_PAIRING_ERROR_INTERNAL
The request failed due to an unknown internal error.
-
SEAT_PARING_ERROR_BAD_RESPONSE
public static final Pairing.Error SEAT_PARING_ERROR_BAD_RESPONSE
The request failed due to an unexpected response from server.
-
SEAT_PAIRING_ERROR_SERVICE_NOT_FOUND
public static final Pairing.Error SEAT_PAIRING_ERROR_SERVICE_NOT_FOUND
The request failed due to the service not being avalable.
-
SEAT_UNPAIRING_ERROR_UNKNOWN
public static final Pairing.Error SEAT_UNPAIRING_ERROR_UNKNOWN
The request failed due to an unknown error.
-
SEAT_UNPAIRING_ERROR_NOT_PAIRED
public static final Pairing.Error SEAT_UNPAIRING_ERROR_NOT_PAIRED
The request failed due to the seatback monitor not being paired.
-
SEAT_UNPAIRING_ERROR_INTERNAL_ERROR
public static final Pairing.Error SEAT_UNPAIRING_ERROR_INTERNAL_ERROR
The request failed due to an unknown internal error.
-
SEAT_UNPAIRING_ERROR_BAD_RESPONSE
public static final Pairing.Error SEAT_UNPAIRING_ERROR_BAD_RESPONSE
The request failed due to the server returning an unexpected response.
-
SEAT_UNPAIRING_ERROR_SERVICE_NOT_FOUND
public static final Pairing.Error SEAT_UNPAIRING_ERROR_SERVICE_NOT_FOUND
The request failed due to the service not being avalable.
-
ERROR_ACCESS_FORBIDDEN
public static final Pairing.Error ERROR_ACCESS_FORBIDDEN
The request failed due to not authorized to access the service.
-
-
Method Detail
-
values
public static Pairing.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 (Pairing.Error c : Pairing.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 Pairing.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(Pairing.Error error)
Gets details of the error.- Parameters:
error-Pairing.ErrorError object.- Returns:
- String message with error details.
-
getSeatPairingErrorById
public static Pairing.Error getSeatPairingErrorById(int id)
Gets the error by ID.
-
getErrorId
public int getErrorId()
Gets the error by ID.
-
-