Stay organized with collections
Save and categorize content based on your preferences.
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
Public methods |
static
String
|
toString(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.
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
.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-17 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-17 UTC."],[],[],null,["# DetailedErrorCode\n\nSummary: [Constants](#constants) \\| [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nDetailedErrorCode\n=================\n\n\n`\npublic\n\nfinal\n\nclass\nDetailedErrorCode\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\n`\n\n|---|-------------------------------------------------|\n| java.lang.Object ||\n| ↳ | android.car.hardware.property.DetailedErrorCode |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nDetailed error codes used in vehicle HAL interface.\n\nThe list of error codes may be extended in future releases to include additional values.\n\nSummary\n-------\n\n| ### Constants ||\n|-------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `int` | [NOT_AVAILABLE_DISABLED](/reference/android/car/hardware/property/DetailedErrorCode#NOT_AVAILABLE_DISABLED) For features that are not available because the underlying feature is disabled. |\n| `int` | [NOT_AVAILABLE_POOR_VISIBILITY](/reference/android/car/hardware/property/DetailedErrorCode#NOT_AVAILABLE_POOR_VISIBILITY) For features that are not available because of bad camera or sensor visibility. |\n| `int` | [NOT_AVAILABLE_SAFETY](/reference/android/car/hardware/property/DetailedErrorCode#NOT_AVAILABLE_SAFETY) The feature cannot be accessed due to safety reasons. |\n| `int` | [NOT_AVAILABLE_SPEED_HIGH](/reference/android/car/hardware/property/DetailedErrorCode#NOT_AVAILABLE_SPEED_HIGH) For features that are not available because the vehicle speed is too high. |\n| `int` | [NOT_AVAILABLE_SPEED_LOW](/reference/android/car/hardware/property/DetailedErrorCode#NOT_AVAILABLE_SPEED_LOW) For features that are not available because the vehicle speed is too low. |\n| `int` | [NO_DETAILED_ERROR_CODE](/reference/android/car/hardware/property/DetailedErrorCode#NO_DETAILED_ERROR_CODE) General not available error code. |\n\n| ### Public methods ||\n|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` static String` | ` `[toString](/reference/android/car/hardware/property/DetailedErrorCode#toString(int))`(int detailedErrorCode) ` Returns a user-friendly representation of a `DetailedErrorCode`. |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` java.lang.Object ` |-------------------|-------------------------------| | ` Object` | ` clone() ` | | ` boolean` | ` equals(Object arg0) ` | | ` void` | ` finalize() ` | | ` final Class\u003c?\u003e` | ` 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() ` | ||\n\nConstants\n---------\n\n### NOT_AVAILABLE_DISABLED\n\n```\npublic static final int NOT_AVAILABLE_DISABLED\n```\n\nFor features that are not available because the underlying feature is disabled.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n1\n(0x00000001)\n\n\n### NOT_AVAILABLE_POOR_VISIBILITY\n\n```\npublic static final int NOT_AVAILABLE_POOR_VISIBILITY\n```\n\nFor features that are not available because of bad camera or sensor visibility. Examples\nmight be bird poop blocking the camera or a bumper cover blocking an ultrasonic sensor.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n4\n(0x00000004)\n\n\n### NOT_AVAILABLE_SAFETY\n\n```\npublic static final int NOT_AVAILABLE_SAFETY\n```\n\nThe feature cannot be accessed due to safety reasons. Eg. System could be\nin a faulty state, an object or person could be blocking the requested\noperation such as closing a trunk door, etc..\n\n\u003cbr /\u003e\n\nConstant Value:\n\n5\n(0x00000005)\n\n\n### NOT_AVAILABLE_SPEED_HIGH\n\n```\npublic static final int NOT_AVAILABLE_SPEED_HIGH\n```\n\nFor features that are not available because the vehicle speed is too high.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n3\n(0x00000003)\n\n\n### NOT_AVAILABLE_SPEED_LOW\n\n```\npublic static final int NOT_AVAILABLE_SPEED_LOW\n```\n\nFor features that are not available because the vehicle speed is too low.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n2\n(0x00000002)\n\n\n### NO_DETAILED_ERROR_CODE\n\n```\npublic static final int NO_DETAILED_ERROR_CODE\n```\n\nGeneral not available error code. Used to support backward compatibility and when other\nerror codes don't cover the not available reason.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n0\n(0x00000000)\n\n\nPublic methods\n--------------\n\n### toString\n\n```\npublic static String toString (int detailedErrorCode)\n```\n\nReturns a user-friendly representation of a `DetailedErrorCode`.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `detailedErrorCode` | `int`: Value is [NO_DETAILED_ERROR_CODE](/reference/android/car/hardware/property/DetailedErrorCode#NO_DETAILED_ERROR_CODE), [NOT_AVAILABLE_DISABLED](/reference/android/car/hardware/property/DetailedErrorCode#NOT_AVAILABLE_DISABLED), [NOT_AVAILABLE_SPEED_LOW](/reference/android/car/hardware/property/DetailedErrorCode#NOT_AVAILABLE_SPEED_LOW), [NOT_AVAILABLE_SPEED_HIGH](/reference/android/car/hardware/property/DetailedErrorCode#NOT_AVAILABLE_SPEED_HIGH), [NOT_AVAILABLE_POOR_VISIBILITY](/reference/android/car/hardware/property/DetailedErrorCode#NOT_AVAILABLE_POOR_VISIBILITY), or [NOT_AVAILABLE_SAFETY](/reference/android/car/hardware/property/DetailedErrorCode#NOT_AVAILABLE_SAFETY) \u003cbr /\u003e |\n\n| Returns ||\n|----------|--------|\n| `String` | \u003cbr /\u003e |"]]