### Question:
ServerCanceledException extends IOException { public int getResponseCode() { return responseCode; } ServerCanceledException(int responseCode, long currentOffset); int getResponseCode();  }### Answer:
@Test public void construct() { int responseCode = 1; long offset = 2; ServerCanceledException exception = new ServerCanceledException(responseCode, offset); assertThat(exception.getMessage()) .isEqualTo("Response code can't handled on internal " + responseCode + " with current offset " + offset); assertThat(exception.getResponseCode()).isEqualTo(responseCode); }