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
An attempt to connect to a socket of the wrong type (stream or nonstream)
will trigger this exception. An invalid operation applied on the protocol
that doesn't support it will also throw this exception.
- See Also:
URL,
Serialized Form
|
Constructor Summary |
ProtocolException()
Constructs a new instance of this class with its walkback filled in. |
ProtocolException(String detailMessage)
Constructs a new instance of this class with its walkback and message
filled in. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ProtocolException
public ProtocolException()
- Constructs a new instance of this class with its walkback filled in.
ProtocolException
public ProtocolException(String detailMessage)
- Constructs a new instance of this class with its walkback and message
filled in.
- Parameters:
detailMessage - String The detail message for the exception.
Please submit a feedback, bug or feature