On 08/11/2013 21:34, Bernd Eckenfels wrote:
Hello,

BTW: it would be good if UHE had a data member of the not-found host value. Actually the javadoc hints in that direction:

# public UnknownHostException(String host)
#
# Parameters:
#    host - the detail message.

which is quite confusing. Maybe a new constructor like UHE(String cause, String host, String osError) would be really usefull?
The name of the parameter is confusing because the detail message can include both the hostname and the error details (if known). This came recently during the lengthy discussion about JDK-8010371 [1].

-Alan.

[1] http://mail.openjdk.java.net/pipermail/net-dev/2013-October/007390.html

Reply via email to