Class ExceptionTransformingUnaryCallable<RequestT,ResponseT>
- java.lang.Object
-
- com.google.api.gax.rpc.UnaryCallable<RequestT,ResponseT>
-
- com.google.ads.googleads.lib.stubs.callables.ExceptionTransformingUnaryCallable<RequestT,ResponseT>
-
public class ExceptionTransformingUnaryCallable<RequestT,ResponseT> extends com.google.api.gax.rpc.UnaryCallable<RequestT,ResponseT>Wrapper around aUnaryCallablewhich invokes anExceptionTransformationforThrowables which occur on the stream.NOTE: This class could be pushed into the gax library, as it is not specific to the Google Ads API.
-
-
Constructor Summary
Constructors Constructor Description ExceptionTransformingUnaryCallable(com.google.api.gax.rpc.UnaryCallable<RequestT,ResponseT> callable, ExceptionTransformation transformation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.api.core.ApiFuture<ResponseT>futureCall(RequestT request, com.google.api.gax.rpc.ApiCallContext inputContext)
-
-
-
Constructor Detail
-
ExceptionTransformingUnaryCallable
public ExceptionTransformingUnaryCallable(com.google.api.gax.rpc.UnaryCallable<RequestT,ResponseT> callable, ExceptionTransformation transformation)
-
-