Skip to content

[Maybe] Unify error handling for waitForWorkflowCompletion and tryGettingWorkflowResults  #202

Open
@longquanzheng

Description

@longquanzheng

Today the withWait api will throw client side exception with long poll timeout sub status . Because this is a 4xx error from server.

Assertions.assertEquals(ErrorSubStatus.LONG_POLL_TIME_OUT_SUB_STATUS, e.getErrorSubStatus());

However, tryGetting api will throw UncompletedException.

this inconsistency could be a bit confusing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions