Page Summary
-
TripUpdateErroris an abstract class that holds metadata about a failed trip update. -
It provides access to the error message, gRPC status code, and the duration of the update event leading to the error.
-
A builder class (
TripUpdateError.Builder) is available for creating instances ofTripUpdateError. -
If the duration of the update event isn't recorded,
getDurationMillis()will return 0, represented by the constantDEFAULT_EVENT_DURATION.
Contains metadata of a failed trip update.
Nested Class Summary
| class | TripUpdateError.Builder | Builds
TripUpdateError instance. |
|
Constant Summary
| long | DEFAULT_EVENT_DURATION | If update event duration wasn't recorded,
0 will be returned when calling
getDurationMillis(). |
Public Constructor Summary
Public Method Summary
| static TripUpdateError.Builder |
builder()
|
| abstract long |
getDurationMillis()
Gets elapsed time from the start of the update event to the error.
|
| abstract String |
getMessage()
Gets error message.
|
| abstract Status.Code |
getStatusCode()
Gets gRPC call status code.
|
| abstract TripUpdateError.Builder |
Inherited Method Summary
Constants
public static final long DEFAULT_EVENT_DURATION
If update event duration wasn't recorded, 0 will be returned when
calling
getDurationMillis().
Public Constructors
public TripUpdateError ()
Public Methods
public static TripUpdateError.Builder builder ()
public abstract long getDurationMillis ()
Gets elapsed time from the start of the update event to the error.
public abstract String getMessage ()
Gets error message.
public abstract Status.Code getStatusCode ()
Gets gRPC call status code.