public class ProtocolException
extends java.lang.Exception
Exception that's thrown when an unrecoverable protocol error at application level occurred while handling a response. An example of a ProtocolException is if the XML in the response of an XML-based protocol is not well-formed or the server returned a status code that's not allowed for this
kind of request.
ProtocolError which is thrown if the server returned an error that's valid with respect to the
application protocol.ProtocolError,
Serialized Form| Constructor and Description |
|---|
ProtocolException(java.lang.String message)
Create a new
ProtocolException with a message. |
ProtocolException(java.lang.String message,
java.lang.Throwable cause)
Create a new
ProtocolException with a message and a cause. |
public ProtocolException(java.lang.String message)
ProtocolException with a message.message - An error message.public ProtocolException(java.lang.String message,
java.lang.Throwable cause)
ProtocolException with a message and a cause.message - An error message.cause - The reason for this error.