# PropertyNotAvailableException

Summary:[Methods](https://developer.android.com/reference/android/car/hardware/property/PropertyNotAvailableException#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/car/hardware/property/PropertyNotAvailableException#inhmethods)  

# 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 |

<br />

*** ** * ** ***

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

For example,[VehiclePropertyIds.HVAC_FAN_SPEED](https://developer.android.com/reference/android/car/VehiclePropertyIds#HVAC_FAN_SPEED)is unavailable because[VehiclePropertyIds.HVAC_POWER_ON](https://developer.android.com/reference/android/car/VehiclePropertyIds#HVAC_POWER_ON)is`false`.

## Summary

|                                                                                                                                                                                   ### Public methods                                                                                                                                                                                    ||
|--------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` int` | ` `[getDetailedErrorCode](https://developer.android.com/reference/android/car/hardware/property/PropertyNotAvailableException#getDetailedErrorCode())`() ` [PropertyNotAvailableErrorCode](https://developer.android.com/reference/android/car/hardware/property/PropertyNotAvailableErrorCode)provides more detailed information on why the vehicle property is not available. |

| ### Inherited methods |
|-----------------------|---|
| From class` java.lang.Throwable ` |------------------------|---------------------------------------------| | ` 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) ` | ||
| From class` java.lang.Object ` |-------------------|-------------------------------| | ` 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](https://developer.android.com/reference/android/car/hardware/property/PropertyNotAvailableErrorCode)provides more detailed information on why the vehicle property is not available. These must be a value defined in[PropertyNotAvailableErrorCode](https://developer.android.com/reference/android/car/hardware/property/PropertyNotAvailableErrorCode). The values in[PropertyNotAvailableErrorCode](https://developer.android.com/reference/android/car/hardware/property/PropertyNotAvailableErrorCode)may be extended in the future to include additional error codes.

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |