Class Errors (2.14.2)

public class Errors

Static utility methods for working with Errors returned from the service.

Inheritance

java.lang.Object > Errors

Static Methods

isRetryableInternalStatus(Status status)

public static boolean isRetryableInternalStatus(Status status)

Returns true iff the Status indicates and internal error that is retryable.

Generally, internal errors are not considered retryable, however there are certain transient network issues that appear as internal but are in fact retryable.

Parameter
NameDescription
statusio.grpc.Status
Returns
TypeDescription
boolean

isRetryableStatus(Status status, Metadata metadata)

public static Errors.IsRetryableStatusResult isRetryableStatus(Status status, Metadata metadata)

Returns true iff the Status indicates an error that is retryable.

Generally, internal errors are not considered retryable, however there are certain transient network issues that appear as internal but are in fact retryable.

Resource exhausted errors are only considered retryable if metadata contains a serialized RetryInfo object.

Parameters
NameDescription
statusio.grpc.Status
metadataio.grpc.Metadata
Returns
TypeDescription
Errors.IsRetryableStatusResult