DetailedErrorCode
  public
  
  final
  
  class
  DetailedErrorCode
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | android.car.hardware.property.DetailedErrorCode | 
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_DISABLEDFor features that are not available because the underlying feature is disabled. | 
| int | NOT_AVAILABLE_POOR_VISIBILITYFor features that are not available because of bad camera or sensor visibility. | 
| int | NOT_AVAILABLE_SAFETYThe feature cannot be accessed due to safety reasons. | 
| int | NOT_AVAILABLE_SPEED_HIGHFor features that are not available because the vehicle speed is too high. | 
| int | NOT_AVAILABLE_SPEED_LOWFor features that are not available because the vehicle speed is too low. | 
| int | NO_DETAILED_ERROR_CODEGeneral not available error code. | 
| Public methods | |
|---|---|
| 
        
        
        static
        
        
        String | 
      toString(int detailedErrorCode)
      Returns a user-friendly representation of a  | 
| Inherited methods | |
|---|---|
Constants
NOT_AVAILABLE_DISABLED
public static final int NOT_AVAILABLE_DISABLED
For features that are not available because the underlying feature is disabled.
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.
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..
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.
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.
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.
Constant Value: 0 (0x00000000)
Public methods
toString
public static String toString (int detailedErrorCode)
Returns a user-friendly representation of a DetailedErrorCode.
| Parameters | |
|---|---|
| detailedErrorCode | int: Value isNO_DETAILED_ERROR_CODE,NOT_AVAILABLE_DISABLED,NOT_AVAILABLE_SPEED_LOW,NOT_AVAILABLE_SPEED_HIGH,NOT_AVAILABLE_POOR_VISIBILITY, orNOT_AVAILABLE_SAFETY | 
| Returns | |
|---|---|
| String | |
