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