Package com.highmobility.autoapi
Enum Class FailureMessage.FailureReason
- All Implemented Interfaces:
ByteEnum,Serializable,Comparable<FailureMessage.FailureReason>,Constable
- Enclosing class:
- FailureMessage
public static enum FailureMessage.FailureReason
extends Enum<FailureMessage.FailureReason>
implements ByteEnum
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCommand failed to execute in time for an unknown reasonCommand can not be executed in the current vehicle stateCommand not recognisedAPI call to an OEM returned an errorCapability is being refreshedPrivacy mode is turned on, meaning vehicle location and other "private" data is not transmitted by the vehicle.Capability rate limit has been exceededUser has not been authenticated or lacks permissionsVehicle has not the capability to perform the commandVehicle has to be waken up before the command can be used. -
Method Summary
Modifier and TypeMethodDescriptionstatic FailureMessage.FailureReasonfromByte(byte byteValue) bytegetByte()static FailureMessage.FailureReasonReturns the enum constant of this class with the specified name.static FailureMessage.FailureReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNSUPPORTED_CAPABILITY
Vehicle has not the capability to perform the command -
UNAUTHORISED
User has not been authenticated or lacks permissions -
INCORRECT_STATE
Command can not be executed in the current vehicle state -
EXECUTION_TIMEOUT
Command failed to execute in time for an unknown reason -
VEHICLE_ASLEEP
Vehicle has to be waken up before the command can be used. If this is for a virtual vehicle, the emulator has to be loaded -
INVALID_COMMAND
Command not recognised -
PENDING
Capability is being refreshed -
RATE_LIMIT
Capability rate limit has been exceeded -
OEM_ERROR
API call to an OEM returned an error -
PRIVACY_MODE_ACTIVE
Privacy mode is turned on, meaning vehicle location and other "private" data is not transmitted by the vehicle.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
fromByte
- Throws:
CommandParseException
-
getByte
public byte getByte()
-