Name

ProtocolException

Synopsis

Signals a protocol error in the Socket class.

java.net.ProtocolException

Figure 12-16. java.net.ProtocolException

public class ProtocolException extends java.io.IOException {
// Public Constructors
     public ProtocolException( );  
     public ProtocolException(String host);  
}

Thrown By

HttpURLConnection.setRequestMethod( )

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.