Package com.google.cloud
Class BaseServiceException.Error
java.lang.Object
com.google.cloud.BaseServiceException.Error
- All Implemented Interfaces:
Serializable
- Enclosing class:
- BaseServiceException
@InternalApi
public static final class BaseServiceException.Error
extends Object
implements Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetCode()Returns the code associated with this exception.Returns the reason that caused the exception.inthashCode()booleanReturns true if the error indicates that the API call was certainly not accepted by the server.booleanisRetryable(boolean idempotent, Set<BaseServiceException.Error> retryableErrors) toString()
-
Constructor Details
-
Error
-
Error
-
-
Method Details
-
getCode
Returns the code associated with this exception. -
isRejected
public boolean isRejected()Returns true if the error indicates that the API call was certainly not accepted by the server. For instance, if the server returns a rate limit exceeded error, it certainly did not process the request and this method will returntrue. -
getReason
Returns the reason that caused the exception. -
isRetryable
@InternalApi public boolean isRetryable(boolean idempotent, Set<BaseServiceException.Error> retryableErrors) -
toString
-
hashCode
public int hashCode() -
equals
-