PropertyNotAvailableException

public class PropertyNotAvailableException
extends IllegalStateException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ java.lang.IllegalStateException
           ↳ android.car.hardware.property.PropertyNotAvailableException


Exception thrown when the vehicle property is not available because of the current state of the vehicle.

For example, VehiclePropertyIds.HVAC_FAN_SPEED is unavailable because VehiclePropertyIds.HVAC_POWER_ON is false.

Summary

Public methods

int getDetailedErrorCode()

PropertyNotAvailableErrorCode provides more detailed information on why the vehicle property is not available.

Inherited methods

final void addSuppressed(Throwable arg0)
Throwable fillInStackTrace()
Throwable getCause()
String getLocalizedMessage()
String getMessage()
StackTraceElement[] getStackTrace()
final Throwable[] getSuppressed()
Throwable initCause(Throwable arg0)
void printStackTrace()
void printStackTrace(PrintWriter arg0)
void printStackTrace(PrintStream arg0)
void setStackTrace(StackTraceElement[] arg0)
Object clone()
boolean equals(Object arg0)
void finalize()
final Class<?> getClass()
int hashCode()
final void notify()
final void notifyAll()
String toString()
final void wait(long arg0, int arg1)
final void wait(long arg0)
final void wait()

Public methods

getDetailedErrorCode

public int getDetailedErrorCode ()

PropertyNotAvailableErrorCode provides more detailed information on why the vehicle property is not available. These must be a value defined in PropertyNotAvailableErrorCode. The values in PropertyNotAvailableErrorCode may be extended in the future to include additional error codes.

Returns
int