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
public class BaseHttpServiceException extends BaseServiceException
Base class for all exceptions from http-based services.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.cloud.BaseServiceException
BaseServiceException.Error, BaseServiceException.ExceptionData
-
-
Field Summary
Fields Modifier and Type Field Description static int
UNKNOWN_CODE
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseHttpServiceException(int code, String message, String reason, boolean idempotent, Set<BaseServiceException.Error> retryableErrors)
protected
BaseHttpServiceException(int code, String message, String reason, boolean idempotent, Set<BaseServiceException.Error> retryableErrors, Throwable cause)
protected
BaseHttpServiceException(com.google.api.client.googleapis.json.GoogleJsonError googleJsonError, boolean idempotent, Set<BaseServiceException.Error> retryableErrors)
protected
BaseHttpServiceException(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, translate
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
UNKNOWN_CODE
public static final int UNKNOWN_CODE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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)
-
-