Skip to content

Wrap GRPC::CANCELED and DEADLINE_EXCEEDED in new exception type#2172

Merged
Quinn-With-Two-Ns merged 4 commits intotemporalio:masterfrom
Quinn-With-Two-Ns:issue-2069
Aug 6, 2024
Merged

Wrap GRPC::CANCELED and DEADLINE_EXCEEDED in new exception type#2172
Quinn-With-Two-Ns merged 4 commits intotemporalio:masterfrom
Quinn-With-Two-Ns:issue-2069

Conversation

@Quinn-With-Two-Ns
Copy link
Contributor

Wrap GRPC::CANCELED and DEADLINE_EXCEEDED in new exception type WorkflowUpdateTimeoutOrCancelledException

closes #2069

@Quinn-With-Two-Ns Quinn-With-Two-Ns requested a review from a team as a code owner August 6, 2024 17:11
* this is only related to the client call itself.
*/
public class WorkflowUpdateTimeoutOrCancelledException extends WorkflowServiceException {
public WorkflowUpdateTimeoutOrCancelledException(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May be worth docs here stating this constructor is for internal use only and that the parameters may not be stable, but maybe not if we never expect to change or we can overload

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is fine as is, we do the same thing for all the other children of WorkflowServiceException. A user may construct it for mocking/testsing

Copy link
Member

@cretz cretz Aug 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, my only concern is that we can't ever change it now, only overload it. But no big deal.

@Quinn-With-Two-Ns Quinn-With-Two-Ns merged commit 531d3cb into temporalio:master Aug 6, 2024
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.

Wrap GRPC::CANCELED and DEADLINE_EXCEEDED in an SDK Timeout exception for Update

2 participants