Package java.net
Class ProtocolException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
java.net.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 Summary
Constructors Constructor Description ProtocolException()Constructs a new instance.ProtocolException(String detailMessage)Constructs a new instance with the given detail message.ProtocolException(String detailMessage, Throwable cause)Constructs a new instance with given detail message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ProtocolException
public ProtocolException()Constructs a new instance. -
ProtocolException
Constructs a new instance with the given detail message. -
ProtocolException
Constructs a new instance with given detail message and cause.
-