Home
last modified time | relevance | path

Searched refs:ProtocolException (Results 1 – 4 of 4) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DProtocolExceptionTest.java20 import java.net.ProtocolException;
30 throw new ProtocolException(); in test_Constructor()
31 } catch (ProtocolException e) { in test_Constructor()
45 throw new ProtocolException("Some error message"); in test_ConstructorLjava_lang_String()
46 } catch (ProtocolException e) { in test_ConstructorLjava_lang_String()
/libcore/luni/src/main/java/java/net/
DProtocolException.java25 public class ProtocolException extends java.io.IOException { class
32 public ProtocolException() { in ProtocolException() method in ProtocolException
38 public ProtocolException(String detailMessage) { in ProtocolException() method in ProtocolException
46 public ProtocolException(String detailMessage, Throwable cause) { in ProtocolException() method in ProtocolException
DHttpURLConnection.java672 public void setRequestMethod(String method) throws ProtocolException { in setRequestMethod()
674 throw new ProtocolException("Connection already established"); in setRequestMethod()
685 throw new ProtocolException("Unknown method '" + method + "'; must be one of " + in setRequestMethod()
/libcore/luni/src/test/java/libcore/java/net/
DURLConnectionTest.java36 import java.net.ProtocolException;
423 } catch (ProtocolException expected) { in testGetResponseCodeNoResponseBody()
1148 } catch (ProtocolException expected) {
2045 } catch (ProtocolException expected) {
2058 } catch (ProtocolException expected) {