AI-generated Key Takeaways
-
DriverContext.DriverStatusListeneris an interface used for receiving status updates, including the cause of any error logs. -
It provides two enums:
StatusCodewhich defines the types of status updates andStatusLevelwhich indicates the severity of the update. -
The
updateStatusmethod is called whenever there is a change in status, providing information about the severity, status code, a descriptive message, and the potential cause of the update.
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. |