Class ProtocolError
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.dmfs.httpessentials.exceptions.ProtocolError
- All Implemented Interfaces:
Serializable
An
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.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionProtocolError(String message) Create a newProtocolErrorwith a message.ProtocolError(String message, Throwable cause) Create a newProtocolErrorwith a message and a 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
-
ProtocolError
Create a newProtocolErrorwith a message.- Parameters:
message- An error message.
-
ProtocolError
Create a newProtocolErrorwith a message and a cause.- Parameters:
message- An error message.cause- The reason for this error.
-