@InternalApi public static final class BaseServiceException.Error extends Object implements Serializable
Constructor and Description |
---|
Error(Integer code,
String reason) |
Error(Integer code,
String reason,
boolean rejected) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Integer |
getCode()
Returns the code associated with this exception.
|
String |
getReason()
Returns the reason that caused the exception.
|
int |
hashCode() |
boolean |
isRejected()
Returns true if the error indicates that the API call was certainly not accepted by the
server.
|
boolean |
isRetryable(boolean idempotent,
Set<BaseServiceException.Error> retryableErrors) |
String |
toString() |
public Integer getCode()
public boolean isRejected()
true
.public String getReason()
@InternalApi public boolean isRetryable(boolean idempotent, Set<BaseServiceException.Error> retryableErrors)
Copyright © 2019 Google LLC. All rights reserved.