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.ExceptionData
build()
BaseServiceException.ExceptionData.Builder
setCause(Throwable cause)
BaseServiceException.ExceptionData.Builder
setCode(int code)
BaseServiceException.ExceptionData.Builder
setDebugInfo(String debugInfo)
BaseServiceException.ExceptionData.Builder
setLocation(String location)
BaseServiceException.ExceptionData.Builder
setMessage(String message)
BaseServiceException.ExceptionData.Builder
setReason(String reason)
BaseServiceException.ExceptionData.Builder
setRetryable(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()
-
-