Class RestResponseException

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.netty.handler.codec.http.HttpResponseStatus getStatus()  
      java.lang.String getText()  
      • 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

      • RestResponseException

        public RestResponseException​(io.netty.handler.codec.http.HttpResponseStatus status,
                                     java.lang.String text)
        Parameters:
        status - Status code returned to the client.
        text - Text returned to the client.
      • RestResponseException

        public RestResponseException​(io.netty.handler.codec.http.HttpResponseStatus status,
                                     java.lang.String text,
                                     java.lang.Throwable t)
        Creates a new RestResponseException.
        Parameters:
        status - Status code returned to the client.
        text - Text returned to the client.
        t - Throwable instance.
      • RestResponseException

        public RestResponseException​(java.lang.Throwable t)
        Creates a new RestResponseException whose status is 500.
        Parameters:
        t - Throwable instance.
      • RestResponseException

        public RestResponseException​(io.netty.handler.codec.http.HttpResponseStatus status,
                                     java.lang.Throwable t)
        Creates a new RestResponseException.
        Parameters:
        status - Status code returned to the client.
        t - Throwable instance.
    • Method Detail

      • getStatus

        public io.netty.handler.codec.http.HttpResponseStatus getStatus()
      • getText

        public java.lang.String getText()