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(@Nullable String message, @Nullable Throwable cause, StatusCode statusCode, boolean retryable) static ApiExceptioncreateException(@Nullable String message, @Nullable Throwable cause, StatusCode statusCode, boolean retryable, @Nullable ErrorDetails errorDetails) static ApiExceptioncreateException(@Nullable Throwable cause, StatusCode statusCode, boolean retryable) static ApiExceptioncreateException(@Nullable Throwable cause, StatusCode statusCode, boolean retryable, @Nullable ErrorDetails errorDetails)
-
Method Details
-
createException
public static ApiException createException(@Nullable Throwable cause, StatusCode statusCode, boolean retryable) -
createException
public static ApiException createException(@Nullable String message, @Nullable Throwable cause, StatusCode statusCode, boolean retryable) -
createException
public static ApiException createException(@Nullable Throwable cause, StatusCode statusCode, boolean retryable, @Nullable ErrorDetails errorDetails) -
createException
public static ApiException createException(@Nullable String message, @Nullable Throwable cause, StatusCode statusCode, boolean retryable, @Nullable ErrorDetails errorDetails)
-