We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a099f9c commit c5d707cCopy full SHA for c5d707c
httpcore5/src/main/java/org/apache/hc/core5/http/nio/support/classic/ClassicToAsyncSupport.java
@@ -29,6 +29,7 @@
29
30
import java.io.IOException;
31
32
+import org.apache.hc.core5.http.ConnectionClosedException;
33
import org.apache.hc.core5.http.HttpException;
34
35
final class ClassicToAsyncSupport {
@@ -40,6 +41,8 @@ static void rethrow(final Throwable ex) throws IOException {
40
41
throw (Error) ex;
42
} else if (ex instanceof RuntimeException) {
43
throw (RuntimeException) ex;
44
+ } else if (ex instanceof ConnectionClosedException) {
45
+ throw (ConnectionClosedException) ex;
46
} else if (ex instanceof IOException) {
47
throw new TransportException((IOException) ex);
48
} else if (ex instanceof HttpException) {
0 commit comments