Package java.net

Class ProtocolException

All Implemented Interfaces:
Serializable

public class ProtocolException
extends IOException
Signals that either a connection attempt to a socket of the wrong type, the application of an unsupported operation or that a general error in the underlying protocol has occurred.
See Also:
Serialized Form
  • Constructor Details

    • ProtocolException

      public ProtocolException()
      Constructs a new instance.
    • ProtocolException

      public ProtocolException​(String detailMessage)
      Constructs a new instance with the given detail message.
    • ProtocolException

      public ProtocolException​(String detailMessage, Throwable cause)
      Constructs a new instance with given detail message and cause.