< prev index next >

test/jdk/java/net/httpclient/TimeoutBasic.java

Print this page

        

@@ -162,10 +162,11 @@
                     out.println("Headers: " + resp.headers().map());
                     out.println("Body (should be null): " + resp.body());
                     throw new RuntimeException("Unexpected response: " + resp.statusCode());
                 } catch (CompletionException e) {
                     if (!(e.getCause() instanceof HttpTimeoutException)) {
+                        e.printStackTrace(out);
                         throw new RuntimeException("Unexpected exception: " + e.getCause());
                     } else {
                         out.println("Caught expected timeout: " + e.getCause());
                     }
                 }
< prev index next >