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.