8299475: Enhance SocketException by cause where it is missing in net and nio area

Reviewed-by: alanb
This commit is contained in:
Matthias Baesken 2023-01-05 08:26:38 +00:00
parent 2ccdefc81c
commit c929d8be5d
4 changed files with 25 additions and 8 deletions

View file

@ -299,7 +299,7 @@ public class ServerSocket implements java.io.Closeable {
} catch (SocketException e) {
throw e;
} catch (IOException e) {
throw new SocketException(e.getMessage());
throw new SocketException(e.getMessage(), e);
}
created = true;
}