Class BaseServiceException

    • Constructor Detail

      • BaseServiceException

        @InternalApi("This class should only be extended within google-cloud-java")
        protected BaseServiceException​(BaseServiceException.ExceptionData exceptionData)
    • Method Detail

      • isRetryable

        @InternalApi
        public static boolean isRetryable​(boolean idempotent,
                                          IOException exception)
      • getCode

        public int getCode()
        Returns the code associated with this exception.
      • getReason

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

        public boolean isRetryable()
        Returns true when it is safe to retry the operation that caused this exception.
      • getLocation

        public String getLocation()
        Returns the service location where the error causing the exception occurred. Returns null if not available.
      • getDebugInfo

        @InternalApi
        public String getDebugInfo()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object