# PropertyNotAvailableErrorCode

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

# PropertyNotAvailableErrorCode


`
public

final

class
PropertyNotAvailableErrorCode
`


`

extends Object


`

`


`

|---|-------------------------------------------------------------|
| java.lang.Object                                               ||
| ↳ | android.car.hardware.property.PropertyNotAvailableErrorCode |

<br />

*** ** * ** ***

Detailed error codes used in vehicle HAL interface.

The list of error codes may be extended in future releases to include
additional values.

## Summary

|                                                                                                                       ### Constants                                                                                                                       ||
|-------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [NOT_AVAILABLE](https://developer.android.com/reference/android/car/hardware/property/PropertyNotAvailableErrorCode#NOT_AVAILABLE) General not available error code.                                                                               |
| `int` | [NOT_AVAILABLE_DISABLED](https://developer.android.com/reference/android/car/hardware/property/PropertyNotAvailableErrorCode#NOT_AVAILABLE_DISABLED) For features that are not available because the underlying feature is disabled.               |
| `int` | [NOT_AVAILABLE_POOR_VISIBILITY](https://developer.android.com/reference/android/car/hardware/property/PropertyNotAvailableErrorCode#NOT_AVAILABLE_POOR_VISIBILITY) For features that are not available because of bad camera or sensor visibility. |
| `int` | [NOT_AVAILABLE_SAFETY](https://developer.android.com/reference/android/car/hardware/property/PropertyNotAvailableErrorCode#NOT_AVAILABLE_SAFETY) The feature cannot be accessed due to safety reasons.                                             |
| `int` | [NOT_AVAILABLE_SPEED_HIGH](https://developer.android.com/reference/android/car/hardware/property/PropertyNotAvailableErrorCode#NOT_AVAILABLE_SPEED_HIGH) For features that are not available because the vehicle speed is too high.                |
| `int` | [NOT_AVAILABLE_SPEED_LOW](https://developer.android.com/reference/android/car/hardware/property/PropertyNotAvailableErrorCode#NOT_AVAILABLE_SPEED_LOW) For features that are not available because the vehicle speed is too low.                   |

|                                                                                                                          ### Public methods                                                                                                                           ||
|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` static String` | ` `[toString](https://developer.android.com/reference/android/car/hardware/property/PropertyNotAvailableErrorCode#toString(int))`(int propertyNotAvailableErrorCode) ` Returns a user-friendly representation of a `PropertyNotAvailableErrorCode`. |

| ### Inherited methods |
|-----------------------|---|
| 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() `                    | ||

## Constants

### NOT_AVAILABLE

```
public static final int NOT_AVAILABLE
```

General not available error code. Used to support backward compatibility and when other
error codes don't cover the not available reason.

<br />

Constant Value:

0
(0x00000000)


### NOT_AVAILABLE_DISABLED

```
public static final int NOT_AVAILABLE_DISABLED
```

For features that are not available because the underlying feature is disabled.

<br />

Constant Value:

1
(0x00000001)


### NOT_AVAILABLE_POOR_VISIBILITY

```
public static final int NOT_AVAILABLE_POOR_VISIBILITY
```

For features that are not available because of bad camera or sensor visibility. Examples
might be bird poop blocking the camera or a bumper cover blocking an ultrasonic sensor.

<br />

Constant Value:

4
(0x00000004)


### NOT_AVAILABLE_SAFETY

```
public static final int NOT_AVAILABLE_SAFETY
```

The feature cannot be accessed due to safety reasons. Eg. System could be
in a faulty state, an object or person could be blocking the requested
operation such as closing a trunk door, etc..

<br />

Constant Value:

5
(0x00000005)


### NOT_AVAILABLE_SPEED_HIGH

```
public static final int NOT_AVAILABLE_SPEED_HIGH
```

For features that are not available because the vehicle speed is too high.

<br />

Constant Value:

3
(0x00000003)


### NOT_AVAILABLE_SPEED_LOW

```
public static final int NOT_AVAILABLE_SPEED_LOW
```

For features that are not available because the vehicle speed is too low.

<br />

Constant Value:

2
(0x00000002)


## Public methods

### toString

```
public static String toString (int propertyNotAvailableErrorCode)
```

Returns a user-friendly representation of a `PropertyNotAvailableErrorCode`.

<br />

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Parameters                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ||
|---------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `propertyNotAvailableErrorCode` | `int`: Value is [NOT_AVAILABLE](https://developer.android.com/reference/android/car/hardware/property/PropertyNotAvailableErrorCode#NOT_AVAILABLE), [NOT_AVAILABLE_DISABLED](https://developer.android.com/reference/android/car/hardware/property/PropertyNotAvailableErrorCode#NOT_AVAILABLE_DISABLED), [NOT_AVAILABLE_SPEED_LOW](https://developer.android.com/reference/android/car/hardware/property/PropertyNotAvailableErrorCode#NOT_AVAILABLE_SPEED_LOW), [NOT_AVAILABLE_SPEED_HIGH](https://developer.android.com/reference/android/car/hardware/property/PropertyNotAvailableErrorCode#NOT_AVAILABLE_SPEED_HIGH), [NOT_AVAILABLE_POOR_VISIBILITY](https://developer.android.com/reference/android/car/hardware/property/PropertyNotAvailableErrorCode#NOT_AVAILABLE_POOR_VISIBILITY), or [NOT_AVAILABLE_SAFETY](https://developer.android.com/reference/android/car/hardware/property/PropertyNotAvailableErrorCode#NOT_AVAILABLE_SAFETY) <br /> |

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