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