@Override public void closeDueToTimeout() throws IOException { this.timeoutException = new StreamTimeoutException(); close(); }
@Override public void closeDueToTimeout() throws IOException { this.timeoutException = new StreamTimeoutException(); close(); }
private void handleIOException(IOException exception) throws IOException { if (timeoutException == null) { throw exception; } else { // throw a new exception to capture this call's stack trace // the new exception is forwarded as a suppressed exception StreamTimeoutException te = new StreamTimeoutException(timeoutException); te.addSuppressed(exception); throw te; } } }
private void handleIOException(IOException exception) throws IOException { if (timeoutException == null) { throw exception; } else { // throw a new exception to capture this call's stack trace // the new exception is forwarded as a suppressed exception StreamTimeoutException te = new StreamTimeoutException(timeoutException); te.addSuppressed(exception); throw te; } } }
private void handleIOException(IOException exception) throws IOException { if (timeoutException == null) { throw exception; } else { // throw a new exception to capture this call's stack trace // the new exception is forwarded as a suppressed exception StreamTimeoutException te = new StreamTimeoutException(timeoutException); te.addSuppressed(exception); throw te; } } }
@Override public void closeDueToTimeout() throws IOException { this.timeoutException = new StreamTimeoutException(); close(); }
private void handleIOException(IOException exception) throws IOException { if (timeoutException == null) { throw exception; } else { // throw a new exception to capture this call's stack trace // the new exception is forwarded as a suppressed exception StreamTimeoutException te = new StreamTimeoutException(timeoutException); te.addSuppressed(exception); throw te; } } }
@Override public void closeDueToTimeout() throws IOException { this.timeoutException = new StreamTimeoutException(); close(); }
private void handleIOException(IOException exception) throws IOException { if (timeoutException == null) { throw exception; } else { // throw a new exception to capture this call's stack trace // the new exception is forwarded as a suppressed exception StreamTimeoutException te = new StreamTimeoutException(timeoutException); te.addSuppressed(exception); throw te; } } }
@Override public void closeDueToTimeout() throws IOException { this.timeoutException = new StreamTimeoutException(); close(); }
@Override public void closeDueToTimeout() throws IOException { this.timeoutException = new StreamTimeoutException(); close(); }
private void handleIOException(IOException exception) throws IOException { if (timeoutException == null) { throw exception; } else { // throw a new exception to capture this call's stack trace // the new exception is forwarded as a suppressed exception StreamTimeoutException te = new StreamTimeoutException(timeoutException); te.addSuppressed(exception); throw te; } } }