Enum MediaQueue.Error
- java.lang.Object
-
- java.lang.Enum<MediaQueue.Error>
-
- aero.panasonic.inflight.services.pairing.v1.MediaQueue.Error
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<MediaQueue.Error>
- Enclosing class:
- MediaQueue
public static enum MediaQueue.Error extends java.lang.Enum<MediaQueue.Error>
Error messages.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERROR_ACCESS_FORBIDDENThe request failed due to no authorization to access the service.ERROR_BAD_REQUESTThe request failed due to missing or invalid parameters.ERROR_BAD_RESPONSEThe request failed due to an unexpected response from the server.ERROR_CONNECTIONThe request failed due to a network connection error.ERROR_INTERNALThe request failed due to an unexpected internal error.ERROR_SERVICE_NOT_FOUNDThe request failed due to the unavailability of the service.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MediaQueue.ErrorgetErrorById(int id)Gets the error by ID.intgetErrorId()Gets the ID for the error.static MediaQueue.ErrorvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static MediaQueue.Error[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ERROR_BAD_REQUEST
public static final MediaQueue.Error ERROR_BAD_REQUEST
The request failed due to missing or invalid parameters.
-
ERROR_BAD_RESPONSE
public static final MediaQueue.Error ERROR_BAD_RESPONSE
The request failed due to an unexpected response from the server.
-
ERROR_CONNECTION
public static final MediaQueue.Error ERROR_CONNECTION
The request failed due to a network connection error.
-
ERROR_INTERNAL
public static final MediaQueue.Error ERROR_INTERNAL
The request failed due to an unexpected internal error.
-
ERROR_SERVICE_NOT_FOUND
public static final MediaQueue.Error ERROR_SERVICE_NOT_FOUND
The request failed due to the unavailability of the service.
-
ERROR_ACCESS_FORBIDDEN
public static final MediaQueue.Error ERROR_ACCESS_FORBIDDEN
The request failed due to no authorization to access the service.
-
-
Method Detail
-
values
public static MediaQueue.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 (MediaQueue.Error c : MediaQueue.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 MediaQueue.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 MediaQueue.Error getErrorById(int id)
Gets the error by ID.
-
getErrorId
public int getErrorId()
Gets the ID for the error.
-
-