java.net.ProtocolException
java.io.IOException
None
None
JDK 1.0 or later
A ProtocolException is thrown to indicate that there has been an error in an underlying protocol, such as an HTTP or TCP protocol error.
public class java.net.ProtocolException extends java.io.IOException {
// Constructors
public ProtocolException();
public ProtocolException(String host);
}
This constructor creates a ProtocolException with no associated detail message.
The detail message.
This constructor creates a ProtocolException with the specified detail message, which should be the host that caused the underlying protocol error.
|
Method |
Inherited From |
Method |
Inherited From |
|---|---|---|---|
|
clone() |
Object |
equals(Object) |
Object |
|
fillInStackTrace() |
Throwable |
finalize() |
Object |
|
getClass() |
Object |
getLocalizedMessage() |
Throwable |
|
getMessage() |
Throwable |
hashCode() |
Object |
|
notify() |
Object |
notifyAll() |
Object |
|
printStackTrace() |
Throwable |
printStackTrace(PrintStream) |
Throwable |
|
printStackTrace(PrintWriter) |
Throwable |
toString() |
Throwable |
|
wait() |
Object |
wait(long) |
Object |
|
wait(long, int) |
Object |
Exception, IOException, RuntimeException