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 Details

  • Method Details

    • getCode

      public Integer 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 return true.
    • getReason

      public String getReason()
      Returns the reason that caused the exception.
    • isRetryable

      @InternalApi public boolean isRetryable(boolean idempotent, Set<BaseServiceException.Error> retryableErrors)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object