RFR: [XS] 8250770 : Net.java translateToSocketException does not handle IOException

Alan Bateman Alan.Bateman at oracle.com
Wed Jul 29 10:35:53 UTC 2020


On 29/07/2020 11:29, Daniel Fuchs wrote:
>
>
> I agree with Alan that at least the message of the original
> exception should be kept. I wonder if we should keep the
> original IOException as the cause as well.
>
> Something like:
>
>    nx = new SocketException(x.getMessage());
>    nx.initCause(x);
The translation already sets the cause so we are okay on that point.

-Alan


More information about the nio-dev mailing list