Package com.google.cloud
Class BaseServiceException.ExceptionData
- java.lang.Object
-
- com.google.cloud.BaseServiceException.ExceptionData
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- BaseServiceException
@InternalApi public static final class BaseServiceException.ExceptionData extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBaseServiceException.ExceptionData.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BaseServiceException.ExceptionDatafrom(int code, String message, String reason, boolean retryable)static BaseServiceException.ExceptionDatafrom(int code, String message, String reason, boolean retryable, Throwable cause)ThrowablegetCause()intgetCode()StringgetDebugInfo()StringgetLocation()StringgetMessage()StringgetReason()booleanisRetryable()static BaseServiceException.ExceptionData.BuildernewBuilder()
-
-
-
Method Detail
-
getMessage
public String getMessage()
-
getCause
public Throwable getCause()
-
getCode
public int getCode()
-
isRetryable
public boolean isRetryable()
-
getReason
public String getReason()
-
getLocation
public String getLocation()
-
getDebugInfo
public String getDebugInfo()
-
newBuilder
public static BaseServiceException.ExceptionData.Builder newBuilder()
-
from
public static BaseServiceException.ExceptionData from(int code, String message, String reason, boolean retryable)
-
from
public static BaseServiceException.ExceptionData from(int code, String message, String reason, boolean retryable, Throwable cause)
-
-