A DESCRIPTION OF THE REQUEST :
java.net.PlainSocketImpl.socketConnect(Native Method) can throw a
"java.net.NoRouteToHostException: No route to host"
in case of network problem.
This generic error message does not give any indication of which host can not be reached.
JUSTIFICATION :
For more complex network typologies, it would be incredibly useful to know /which/ host can not be reached, but including the desired host name in the exception message.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
java.net.NoRouteToHostException: No route to host "www.example.com"
ACTUAL -
java.net.NoRouteToHostException: No route to host
java.net.PlainSocketImpl.socketConnect(Native Method) can throw a
"java.net.NoRouteToHostException: No route to host"
in case of network problem.
This generic error message does not give any indication of which host can not be reached.
JUSTIFICATION :
For more complex network typologies, it would be incredibly useful to know /which/ host can not be reached, but including the desired host name in the exception message.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
java.net.NoRouteToHostException: No route to host "www.example.com"
ACTUAL -
java.net.NoRouteToHostException: No route to host
- duplicates
-
JDK-8204233 Add configurable option for enhanced socket IOException messages
-
- Closed
-