Skip to content

Transform exceptions on server streaming calls.#349

Merged
nwbirnie merged 3 commits intogoogleads:masterfrom
nwbirnie:callable
Oct 8, 2020
Merged

Transform exceptions on server streaming calls.#349
nwbirnie merged 3 commits intogoogleads:masterfrom
nwbirnie:callable

Conversation

@nwbirnie
Copy link
Copy Markdown
Contributor

@nwbirnie nwbirnie commented Oct 6, 2020

Currently we do not generate GoogleAdsException instances for server streaming callables (see #332). This means that users cannot retrieve the GoogleAdsFailure objects when streaming calls fail.

This change adds an ExceptionTransformingServerStreamingCallable class which handles the exception transformation. It also adds unit tests for both the new and the existing ExceptionTransformingUnaryCallable classes.

The remaining callable types will be handled in a follow up CL.

Change-Id: Ia8339f1ee482ab7f02085f5c47f90ab1cc0aee5b

@nwbirnie nwbirnie requested review from devchas and jradcliff October 6, 2020 15:34
Currently we do not generate GoogleAdsException instances for server streaming callables (see #332)

Change-Id: Ia8339f1ee482ab7f02085f5c47f90ab1cc0aee5b
Change-Id: I6993862c9427e6678b1b3ab00a041cbea5383fd7
@nwbirnie nwbirnie requested a review from jradcliff October 7, 2020 17:10
@nwbirnie
Copy link
Copy Markdown
Contributor Author

nwbirnie commented Oct 7, 2020

Sorry for the force push, forgot that messes up git's review history.

Change-Id: If3fef16448c9f6497dbe0a8ae97946d92a47adbb
@nwbirnie nwbirnie merged commit 342a7cd into googleads:master Oct 8, 2020
@nwbirnie nwbirnie deleted the callable branch October 8, 2020 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants