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.
Today the withWait api will throw client side exception with long poll timeout sub status . Because this is a 4xx error from server.
iwf-java-sdk/src/test/java/io/iworkflow/integ/WorkflowUncompletedTest.java
Line 44 in 3409ea7
However, tryGetting api will throw UncompletedException.
this inconsistency could be a bit confusing.