public class ProtocolError
extends java.lang.Exception
Exception that's thrown when an error at application level occurred while handling a response. This is to be used for errors that are valid
responses within the scope of the application protocol.
An example of a ProtocolError is when you try to upload a file but the server refuses to store it for a specific reason.
This is different from aProtocolException which is thrown when the response does not conform to the application protocol.ProtocolException,
Serialized Form| Constructor and Description |
|---|
ProtocolError(java.lang.String message)
Create a new
ProtocolError with a message. |
ProtocolError(java.lang.String message,
java.lang.Throwable cause)
Create a new
ProtocolError with a message and a cause. |
public ProtocolError(java.lang.String message)
ProtocolError with a message.message - An error message.public ProtocolError(java.lang.String message,
java.lang.Throwable cause)
ProtocolError with a message and a cause.message - An error message.cause - The reason for this error.