Class BadMessageException

  • All Implemented Interfaces:

    public class BadMessageException
    extends java.lang.RuntimeException

    Exception thrown to indicate a Bad HTTP Message has either been received or attempted to be generated. Typically these are handled with either 400 or 500 responses.

    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getCode()  
      java.lang.String getReason()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • BadMessageException

        public BadMessageException()
      • BadMessageException

        public BadMessageException​(int code)
      • BadMessageException

        public BadMessageException​(java.lang.String reason)
      • BadMessageException

        public BadMessageException​(java.lang.String reason,
                                   java.lang.Throwable cause)
      • BadMessageException

        public BadMessageException​(int code,
                                   java.lang.String reason)
      • BadMessageException

        public BadMessageException​(int code,
                                   java.lang.String reason,
                                   java.lang.Throwable cause)
    • Method Detail

      • getCode

        public int getCode()
      • getReason

        public java.lang.String getReason()