Class InvalidHTTPMessageException

All Implemented Interfaces:
Serializable

public class InvalidHTTPMessageException extends HTTPException
An exception thrown when a malformed or otherwise invalid HTTPMessage is encountered.
Since:
1.2.1
See Also:
  • Constructor Details

    • InvalidHTTPMessageException

      public InvalidHTTPMessageException()
      Creates a new InvalidHTTPMessageException with no detail message.
    • InvalidHTTPMessageException

      public InvalidHTTPMessageException(String msg)
      Creates a new InvalidHTTPMessageException with the given detail message.
      Parameters:
      msg - The detail message
    • InvalidHTTPMessageException

      public InvalidHTTPMessageException(String msg, boolean msgUserVisible)
      Creates a new InvalidHTTPMessageException with the given detail message.
      Parameters:
      msg - The detail message
      msgUserVisible - Whether the given msg may be shown to external parties
    • InvalidHTTPMessageException

      public InvalidHTTPMessageException(String msg, Throwable cause)
      Creates a new InvalidHTTPMessageException with the given detail message and cause.
      Parameters:
      msg - The detail message
      cause - The cause
    • InvalidHTTPMessageException

      public InvalidHTTPMessageException(String msg, Throwable cause, boolean msgUserVisible)
      Creates a new InvalidHTTPMessageException with the given detail message and cause.
      Parameters:
      msg - The detail message
      cause - The cause
      msgUserVisible - Whether the given msg may be shown to external parties
  • Method Details

    • isMsgUserVisible

      public boolean isMsgUserVisible()
      Returns whether the message of this Throwable may be shown to external parties, for example in a 400 Bad Request response body.
      Returns:
      true if the exception message may be shown to external parties