TripUpdateError

  • TripUpdateError is 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 of TripUpdateError.

  • If the duration of the update event isn't recorded, getDurationMillis() will return 0, represented by the constant DEFAULT_EVENT_DURATION.

public abstract class TripUpdateError extends Object

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
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().

Constant Value: 0

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.

public abstract TripUpdateError.Builder toBuilder ()