Class StatusCodes
java.lang.Object
io.github.flink.gcp.connector.base.rpc.StatusCodes
Extraction of gRPC status codes from the exceptions the Google Cloud clients surface.
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.api.gax.rpc.StatusCode.CodeReturns the status code the given throwable itself carries — from the gaxApiExceptionthe client libraries surface, or from a raw gRPCStatusRuntimeException(defense in depth) — ornullwhen it carries none.
-
Method Details
-
codeOf
Returns the status code the given throwable itself carries — from the gaxApiExceptionthe client libraries surface, or from a raw gRPCStatusRuntimeException(defense in depth) — ornullwhen it carries none.Only the given throwable is inspected. Walking a cause chain, and deciding which element of it classifies the failure, stays with the caller (typically
ExceptionUtils.findThrowable): retryability classification is per-connector policy.
-