# DetailedErrorCode

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

# DetailedErrorCode

`
public

final

class
DetailedErrorCode
`  
`

extends Object


``


`

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

<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_DISABLED](https://developer.android.com/reference/android/car/hardware/property/DetailedErrorCode#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/DetailedErrorCode#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/DetailedErrorCode#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/DetailedErrorCode#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/DetailedErrorCode#NOT_AVAILABLE_SPEED_LOW) For features that are not available because the vehicle speed is too low.                   |
| `int` | [NO_DETAILED_ERROR_CODE](https://developer.android.com/reference/android/car/hardware/property/DetailedErrorCode#NO_DETAILED_ERROR_CODE) General not available error code.                                                             |

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

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

### NO_DETAILED_ERROR_CODE

```
public static final int NO_DETAILED_ERROR_CODE
```

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)

## Public methods

### toString

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

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

<br />

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

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