AI-generated Key Takeaways
-
DriverContext.DriverStatusListeneris an interface used for receiving status updates, including error causes, within the Driver SDK. -
It features two nested enums:
StatusCodefor defining status update codes andStatusLevelfor indicating their severity. -
The primary method,
updateStatus, is called whenever there's a change in status, providing details like severity, code, message, and potential error cause.
Listener for status updates with the capability of getting the cause of an error log.
Nested Class Summary
| enum | DriverContext.DriverStatusListener.StatusCode | The status codes of the status update. | |
| enum | DriverContext.DriverStatusListener.StatusLevel | The severity levels of the status update. | |
Public Method Summary
| abstract void |
updateStatus(DriverContext.DriverStatusListener.StatusLevel
statusLevel,
DriverContext.DriverStatusListener.StatusCode statusCode, String statusMsg,
Throwable cause)
Called when there are status updates.
|
Public Methods
public abstract void updateStatus (DriverContext.DriverStatusListener.StatusLevel statusLevel, DriverContext.DriverStatusListener.StatusCode statusCode, String statusMsg, Throwable cause)
Called when there are status updates.
Parameters
| statusLevel | The severity of the status message. |
|---|---|
| statusCode | The status code. |
| statusMsg | A description of the status. |
| cause | Throwable
object which represents the cause of the status update. |