Class ManualHttpFailureException

    • Constructor Summary

      Constructors 
      Constructor Description
      ManualHttpFailureException​(io.netty.handler.codec.http.HttpResponseStatus status, java.lang.String content, java.lang.CharSequence contentType, java.lang.String message)
      Constructs a new ManualHttpFailureException with the specified status, content, contentType and message.
      ManualHttpFailureException​(io.netty.handler.codec.http.HttpResponseStatus status, java.lang.String content, java.lang.CharSequence contentType, java.lang.Throwable cause)
      Constructs a new ManualHttpFailureException with the specified status, content, contentType and cause.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String content()
      Returns the response content string.
      java.lang.CharSequence contentType()
      Returns the response content type.
      java.lang.String getLocalizedMessage()  
      io.netty.handler.codec.http.HttpResponseStatus status()
      Returns the failure status.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, 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

      • ManualHttpFailureException

        public ManualHttpFailureException​(io.netty.handler.codec.http.HttpResponseStatus status,
                                          java.lang.String content,
                                          java.lang.CharSequence contentType,
                                          java.lang.Throwable cause)
        Constructs a new ManualHttpFailureException with the specified status, content, contentType and cause.
        Parameters:
        status - the failure status
        content - the response content string
        contentType - the response content type
        cause - the cause
      • ManualHttpFailureException

        public ManualHttpFailureException​(io.netty.handler.codec.http.HttpResponseStatus status,
                                          java.lang.String content,
                                          java.lang.CharSequence contentType,
                                          java.lang.String message)
        Constructs a new ManualHttpFailureException with the specified status, content, contentType and message.
        Parameters:
        status - the failure status
        content - the response content string
        contentType - the response content type
        message - the detail message
    • Method Detail

      • status

        public io.netty.handler.codec.http.HttpResponseStatus status()
        Description copied from class: HttpFailureException
        Returns the failure status.
        Specified by:
        status in class HttpFailureException
        Returns:
        the failure status
      • content

        public java.lang.String content()
        Returns the response content string.
        Returns:
        the response content string
      • contentType

        public java.lang.CharSequence contentType()
        Returns the response content type.
        Returns:
        the response content type