Class RestResponseException

    • Constructor Detail

      • RestResponseException

        public RestResponseException​(io.netty.handler.codec.http.HttpResponseStatus status,
                                     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,
                                     String text,
                                     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​(Throwable t)
        Creates a new RestResponseException whose status is 500.
        Parameters:
        t - Throwable instance.
      • RestResponseException

        public RestResponseException​(io.netty.handler.codec.http.HttpResponseStatus status,
                                     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 String getText()