#

| Chapter 28 The java.net Package |

## 28.14 java.net.ProtocolException (JDK 1.0)

###

Signals a protocol error in the `Socket` class.

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

### Hierarchy:

Object->Throwable(Serializable)->Exception->IOException->ProtocolException

### Thrown By:

HttpURLConnection.setRequestMethod()

java.net.NoRouteToHostException (JDK 1.1) |  | java.net.ServerSocket (JDK 1.0)