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 ApiException
createException
(String message, Throwable cause, StatusCode statusCode, boolean retryable) static ApiException
createException
(Throwable cause, StatusCode statusCode, boolean retryable) static ApiException
createException
(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)
-