Home
last modified time | relevance | path

Searched refs:UnknownHostException (Results 1 – 25 of 50) sorted by relevance

12

/libcore/luni/src/main/java/android/system/
DGaiException.java19 import java.net.UnknownHostException;
71 …public UnknownHostException rethrowAsUnknownHostException(String detailMessage) throws UnknownHost… in rethrowAsUnknownHostException()
72 UnknownHostException newException = new UnknownHostException(detailMessage); in rethrowAsUnknownHostException()
80 public UnknownHostException rethrowAsUnknownHostException() throws UnknownHostException { in rethrowAsUnknownHostException()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DUnknownHostExceptionTest.java20 import java.net.UnknownHostException;
32 throw new UnknownHostException(); in test_Constructor()
35 } catch (UnknownHostException e) { in test_Constructor()
46 throw new UnknownHostException("test"); in test_ConstructorLjava_lang_String()
49 } catch (UnknownHostException e) { in test_ConstructorLjava_lang_String()
DInetAddressTest.java26 import java.net.UnknownHostException;
44 } catch (UnknownHostException e) { in test_getByName_exceptionContainsUsefulMessage()
58 public void test_getAddress() throws UnknownHostException { in test_getAddress()
66 } catch (java.net.UnknownHostException e) { in test_getAddress()
152 public void test_isMulticastAddress() throws UnknownHostException { in test_isMulticastAddress()
162 public void test_isAnyLocalAddress() throws UnknownHostException { in test_isAnyLocalAddress()
172 public void test_isLinkLocalAddress() throws UnknownHostException { in test_isLinkLocalAddress()
182 public void test_isLoopbackAddress() throws UnknownHostException { in test_isLoopbackAddress()
194 public void test_isSiteLocalAddress() throws UnknownHostException { in test_isSiteLocalAddress()
210 public void test_isMCVerify() throws UnknownHostException { in test_isMCVerify()
[all …]
DInet6AddressTest.java25 import java.net.UnknownHostException;
684 public void test_getByAddressLString$BI() throws UnknownHostException { in test_getByAddressLString$BI()
688 } catch (UnknownHostException uhe) { in test_getByAddressLString$BI()
695 } catch (UnknownHostException uhe) { in test_getByAddressLString$BI()
710 throws UnknownHostException { in test_getByAddressLString$BLNetworkInterface()
715 } catch (UnknownHostException uhe) { in test_getByAddressLString$BLNetworkInterface()
722 } catch (UnknownHostException uhe) { in test_getByAddressLString$BLNetworkInterface()
743 public void test_getScopeID() throws UnknownHostException { in test_getScopeID()
759 public void test_getScopedInterface() throws UnknownHostException { in test_getScopedInterface()
768 public void test_hashCode() throws UnknownHostException { in test_hashCode()
/libcore/ojluni/src/main/java/java/net/
DUnknownHostException.java37 class UnknownHostException extends IOException { class
46 public UnknownHostException(String host) { in UnknownHostException() method in UnknownHostException
54 public UnknownHostException() { in UnknownHostException() method in UnknownHostException
DInet6Address.java271 throws UnknownHostException in init()
426 } catch (UnknownHostException e) {} /* cant happen if ifname is null */ in Inet6Address()
430 throws UnknownHostException in Inet6Address()
437 throws UnknownHostException in Inet6Address()
465 throws UnknownHostException in getByAddress()
477 throw new UnknownHostException("addr is of illegal length"); in getByAddress()
498 throws UnknownHostException in getByAddress()
510 throw new UnknownHostException("addr is of illegal length"); in getByAddress()
514 throws UnknownHostException in initstr()
519 throw new UnknownHostException ("no such interface " + ifname); in initstr()
[all …]
DInetAddress.java281 throws UnknownHostException {
285 throws UnknownHostException {
676 } catch (UnknownHostException e) { in getHostFromNameService()
1045 public static InetAddress getByAddress(String host, byte[] addr) throws UnknownHostException { in getByAddress()
1052 throws UnknownHostException { in getByAddress()
1071 throw new UnknownHostException("addr is of illegal length"); in getByAddress()
1104 throws UnknownHostException { in getByName()
1149 throws UnknownHostException { in getAllByName()
1401 throws UnknownHostException { in getByAddress()
1437 public static InetAddress getLocalHost() throws UnknownHostException { in getLocalHost()
[all …]
DInetAddressImpl.java48 InetAddress[] lookupAllHostAddr(String hostname, int netId) throws UnknownHostException; in lookupAllHostAddr()
53 String getHostByAddr(byte[] addr) throws UnknownHostException; in getHostByAddr()
DInet6AddressImpl.java90 public InetAddress[] lookupAllHostAddr(String host, int netId) throws UnknownHostException { in lookupAllHostAddr()
114 throws UnknownHostException { in lookupHostByName()
124 throw new UnknownHostException((String) cachedResult); in lookupHostByName()
161 public String getHostByAddr(byte[] addr) throws UnknownHostException { in getHostByAddr()
340 private String getHostByAddr0(byte[] addr) throws UnknownHostException { in getHostByAddr0()
346 UnknownHostException uhe = new UnknownHostException(hostaddr.toString()); in getHostByAddr0()
/libcore/ojluni/src/main/java/sun/net/spi/nameservice/
DNameService.java28 import java.net.UnknownHostException;
34 …ublic java.net.InetAddress[] lookupAllHostAddr(String host, int netId) throws UnknownHostException; in lookupAllHostAddr()
35 public String getHostByAddr(byte[] addr) throws UnknownHostException; in getHostByAddr()
/libcore/ojluni/annotations/sdk/nullability/java/net/
DInetAddress.annotated.java73 …util.Nullable java.lang.String host, byte[] addr) throws java.net.UnknownHostException { throw new… in getByAddress()
75 …ame(@libcore.util.Nullable java.lang.String host) throws java.net.UnknownHostException { throw new… in getByName()
77 …ame(@libcore.util.Nullable java.lang.String host) throws java.net.UnknownHostException { throw new… in getAllByName()
81 …ic java.net.InetAddress getByAddress(byte[] addr) throws java.net.UnknownHostException { throw new… in getByAddress()
83 …public static java.net.InetAddress getLocalHost() throws java.net.UnknownHostException { throw new… in getLocalHost()
85 …e.util.Nullable java.lang.String host, int netId) throws java.net.UnknownHostException { throw new… in getByNameOnNet()
87 …e.util.Nullable java.lang.String host, int netId) throws java.net.UnknownHostException { throw new… in getAllByNameOnNet()
/libcore/ojluni/annotations/hiddenapi/java/net/
DInet6Address.java48 throws java.net.UnknownHostException { in Inet6Address()
53 throws java.net.UnknownHostException { in Inet6Address()
59 throws java.net.UnknownHostException { in getByAddress()
64 java.lang.String host, byte[] addr, int scope_id) throws java.net.UnknownHostException { in getByAddress()
69 throws java.net.UnknownHostException { in initstr()
74 throws java.net.UnknownHostException { in initif()
83 throws java.net.UnknownHostException { in deriveNumericScope()
87 private int deriveNumericScope(java.lang.String ifname) throws java.net.UnknownHostException { in deriveNumericScope()
248 void init(byte[] addr, java.net.NetworkInterface nif) throws java.net.UnknownHostException { in init()
DInet6AddressImpl.java37 throws java.net.UnknownHostException { in lookupAllHostAddr()
42 throws java.net.UnknownHostException { in lookupHostByName()
46 public java.lang.String getHostByAddr(byte[] addr) throws java.net.UnknownHostException { in getHostByAddr()
80 private java.lang.String getHostByAddr0(byte[] addr) throws java.net.UnknownHostException { in getHostByAddr0()
DInetAddress.java134 throws java.net.UnknownHostException { in getByAddress()
139 java.lang.String host, byte[] addr, int scopeId) throws java.net.UnknownHostException { in getByAddress()
144 throws java.net.UnknownHostException { in getByName()
149 throws java.net.UnknownHostException { in getAllByName()
158 throws java.net.UnknownHostException { in getByAddress()
162 public static java.net.InetAddress getLocalHost() throws java.net.UnknownHostException { in getLocalHost()
218 throws java.net.UnknownHostException { in getByNameOnNet()
224 throws java.net.UnknownHostException { in getAllByNameOnNet()
/libcore/ojluni/src/main/java/javax/net/
DSocketFactory.java33 import java.net.UnknownHostException;
164 throws IOException, UnknownHostException; in createSocket()
196 throws IOException, UnknownHostException; in createSocket()
277 throws IOException, UnknownHostException in createSocket()
290 throws IOException, UnknownHostException in createSocket()
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
DSSLSocketFactoryImpl.java8 import java.net.UnknownHostException;
26 throw new UnknownHostException("incorrect host"); in createSocket()
50 public Socket createSocket(String arg0, int arg1) throws IOException, UnknownHostException { in createSocket()
68 …ocket(String arg0, int arg1, InetAddress arg2, int arg3) throws IOException, UnknownHostException { in createSocket()
/libcore/ojluni/annotations/mmodule/java/net/
DInetAddress.annotated.java78 … getByAddress(java.lang.String host, byte[] addr) throws java.net.UnknownHostException { throw new… in getByAddress()
80 ….net.InetAddress getByName(java.lang.String host) throws java.net.UnknownHostException { throw new… in getByName()
82 …InetAddress[] getAllByName(java.lang.String host) throws java.net.UnknownHostException { throw new… in getAllByName()
86 public static java.net.InetAddress getByAddress(byte[] addr) throws java.net.UnknownHostException {… in getByAddress()
88 public static java.net.InetAddress getLocalHost() throws java.net.UnknownHostException { throw new … in getLocalHost()
104 … getByNameOnNet(java.lang.String host, int netId) throws java.net.UnknownHostException { throw new… in getByNameOnNet()
108 …tAllByNameOnNet(java.lang.String host, int netId) throws java.net.UnknownHostException { throw new… in getAllByNameOnNet()
DInet6Address.annotated.java36 …host, byte[] addr, java.net.NetworkInterface nif) throws java.net.UnknownHostException { throw new… in getByAddress()
38 …java.lang.String host, byte[] addr, int scope_id) throws java.net.UnknownHostException { throw new… in getByAddress()
/libcore/benchmarks/src/benchmarks/regression/
DDnsBenchmark.java20 import java.net.UnknownHostException;
44 } catch (UnknownHostException ex) { in timeDns()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLSessionBindingListenerTest.java29 import java.net.UnknownHostException;
61 public void test_valueBound() throws UnknownHostException, IOException, in test_valueBound()
76 public void test_valueUnbound() throws UnknownHostException, IOException { in test_valueUnbound()
/libcore/luni/src/main/java/libcore/net/http/
DDns.java26 import java.net.UnknownHostException;
48 … @NonNull List<@NonNull InetAddress> lookup(@Nullable String hostname) throws UnknownHostException; in lookup()
/libcore/luni/src/test/java/libcore/java/net/
DOldAuthenticatorTest.java23 import java.net.UnknownHostException;
28 public void test_setDefault() throws UnknownHostException { in test_setDefault()
/libcore/ojluni/src/main/java/sun/net/
DNetworkClient.java31 import java.net.UnknownHostException;
133 throws IOException, UnknownHostException { in openServer()
152 throws IOException, UnknownHostException { in doConnect()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/
DSocketFactoryTest.java30 import java.net.UnknownHostException;
70 } catch (UnknownHostException expected) { in test_createSocket_StringI()
225 } catch (UnknownHostException expected) { in test_createSocket_05()
286 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { in createSocket()
292 throws IOException, UnknownHostException { in createSocket()
/libcore/ojluni/src/main/java/javax/net/ssl/
DSSLSocket.java930 throws IOException, UnknownHostException in SSLSocket()
987 throws IOException, UnknownHostException in SSLSocket()

12