InetAddress.java: Throw an UnknownHostException if lookup fails.
2006-04-07 Andrew Haley <aph@redhat.com> * java/net/InetAddress.java: Throw an UnknownHostException if lookup fails. From-SVN: r112754
This commit is contained in:
committed by
Andrew Haley
parent
44cfd8f6d4
commit
544c479db3
@@ -742,6 +742,9 @@ public class InetAddress implements Serializable
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
UnknownHostException failure = new UnknownHostException(hostname);
|
||||
failure.initCause(ex);
|
||||
throw failure;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user