Package com.google.cloud
Class BaseServiceException.ExceptionData.Builder
- java.lang.Object
-
- com.google.cloud.BaseServiceException.ExceptionData.Builder
-
- Enclosing class:
- BaseServiceException.ExceptionData
@InternalApi public static final class BaseServiceException.ExceptionData.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BaseServiceException.ExceptionDatabuild()BaseServiceException.ExceptionData.BuildersetCause(Throwable cause)BaseServiceException.ExceptionData.BuildersetCode(int code)BaseServiceException.ExceptionData.BuildersetDebugInfo(String debugInfo)BaseServiceException.ExceptionData.BuildersetLocation(String location)BaseServiceException.ExceptionData.BuildersetMessage(String message)BaseServiceException.ExceptionData.BuildersetReason(String reason)BaseServiceException.ExceptionData.BuildersetRetryable(boolean retryable)
-
-
-
Method Detail
-
setMessage
public BaseServiceException.ExceptionData.Builder setMessage(String message)
-
setCause
public BaseServiceException.ExceptionData.Builder setCause(Throwable cause)
-
setCode
public BaseServiceException.ExceptionData.Builder setCode(int code)
-
setRetryable
public BaseServiceException.ExceptionData.Builder setRetryable(boolean retryable)
-
setReason
public BaseServiceException.ExceptionData.Builder setReason(String reason)
-
setLocation
public BaseServiceException.ExceptionData.Builder setLocation(String location)
-
setDebugInfo
public BaseServiceException.ExceptionData.Builder setDebugInfo(String debugInfo)
-
build
public BaseServiceException.ExceptionData build()
-
-