Package com.google.cloud.http
Class BaseHttpServiceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.google.cloud.BaseServiceException
com.google.cloud.http.BaseHttpServiceException
- All Implemented Interfaces:
Serializable
Base class for all exceptions from http-based services.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.cloud.BaseServiceException
BaseServiceException.Error, BaseServiceException.ExceptionData -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseHttpServiceException(int code, String message, String reason, boolean idempotent, Set<BaseServiceException.Error> retryableErrors) protectedBaseHttpServiceException(int code, String message, String reason, boolean idempotent, Set<BaseServiceException.Error> retryableErrors, Throwable cause) protectedBaseHttpServiceException(com.google.api.client.googleapis.json.GoogleJsonError googleJsonError, boolean idempotent, Set<BaseServiceException.Error> retryableErrors) protectedBaseHttpServiceException(IOException exception, boolean idempotent, Set<BaseServiceException.Error> retryableErrors) -
Method Summary
Methods inherited from class com.google.cloud.BaseServiceException
equals, getCode, getDebugInfo, getLocation, getReason, hashCode, isRetryable, isRetryable, isRetryable, translate, translateMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
UNKNOWN_CODE
public static final int UNKNOWN_CODE- See Also:
-
-
Constructor Details
-
BaseHttpServiceException
@InternalApi("This class should only be extended within google-cloud-java") protected BaseHttpServiceException(IOException exception, boolean idempotent, Set<BaseServiceException.Error> retryableErrors) -
BaseHttpServiceException
@InternalApi("This class should only be extended within google-cloud-java") protected BaseHttpServiceException(com.google.api.client.googleapis.json.GoogleJsonError googleJsonError, boolean idempotent, Set<BaseServiceException.Error> retryableErrors) -
BaseHttpServiceException
@InternalApi("This class should only be extended within google-cloud-java") protected BaseHttpServiceException(int code, String message, String reason, boolean idempotent, Set<BaseServiceException.Error> retryableErrors) -
BaseHttpServiceException
@InternalApi("This class should only be extended within google-cloud-java") protected BaseHttpServiceException(int code, String message, String reason, boolean idempotent, Set<BaseServiceException.Error> retryableErrors, Throwable cause)
-