Class ProtocolError

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.dmfs.httpessentials.exceptions.ProtocolError
All Implemented Interfaces:
Serializable

public class ProtocolError extends Exception
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 a ProtocolException which is thrown when the response does not conform to the application protocol.
See Also:
  • Constructor Details

    • ProtocolError

      public ProtocolError(String message)
      Create a new ProtocolError with a message.
      Parameters:
      message - An error message.
    • ProtocolError

      public ProtocolError(String message, Throwable cause)
      Create a new ProtocolError with a message and a cause.
      Parameters:
      message - An error message.
      cause - The reason for this error.