Package com.google.cloud.grpc
Class BaseGrpcServiceException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.google.cloud.BaseServiceException
-
- com.google.cloud.grpc.BaseGrpcServiceException
-
- All Implemented Interfaces:
Serializable
public class BaseGrpcServiceException extends BaseServiceException
Base class for all exceptions from grpc-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 inherited from class com.google.cloud.BaseServiceException
UNKNOWN_CODE
-
-
Constructor Summary
Constructors Modifier Constructor Description BaseGrpcServiceException(com.google.api.gax.rpc.ApiException apiException)
protected
BaseGrpcServiceException(IOException exception, boolean idempotent)
protected
BaseGrpcServiceException(String message, Throwable cause, int code, boolean retryable)
-
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
-
-
-
-
Constructor Detail
-
BaseGrpcServiceException
@InternalApi("This class should only be extended within google-cloud-java") protected BaseGrpcServiceException(String message, Throwable cause, int code, boolean retryable)
-
BaseGrpcServiceException
@InternalApi("This class should only be extended within google-cloud-java") protected BaseGrpcServiceException(IOException exception, boolean idempotent)
-
BaseGrpcServiceException
@BetaApi public BaseGrpcServiceException(com.google.api.gax.rpc.ApiException apiException)
-
-