Package com.google.api.gax.rpc
Class ApiExceptionFactory
- java.lang.Object
-
- com.google.api.gax.rpc.ApiExceptionFactory
-
public class ApiExceptionFactory extends java.lang.ObjectA factory class that returns the corresponding type of exception class from the given status code.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ApiExceptioncreateException(java.lang.String message, java.lang.Throwable cause, StatusCode statusCode, boolean retryable)static ApiExceptioncreateException(java.lang.Throwable cause, StatusCode statusCode, boolean retryable)static ApiExceptioncreateException(java.lang.Throwable cause, StatusCode statusCode, boolean retryable, ErrorDetails errorDetails)
-
-
-
Method Detail
-
createException
public static ApiException createException(java.lang.Throwable cause, StatusCode statusCode, boolean retryable)
-
createException
public static ApiException createException(java.lang.String message, java.lang.Throwable cause, StatusCode statusCode, boolean retryable)
-
createException
public static ApiException createException(java.lang.Throwable cause, StatusCode statusCode, boolean retryable, ErrorDetails errorDetails)
-
-