public class RestResponseException
extends java.lang.RuntimeException
RestResponse and sent back to the client.
Http20RequestHandler and Http11RequestHandler are responsible for catching subtypes of this
exception and translate them into proper Netty responses.
| Constructor and Description |
|---|
RestResponseException(io.netty.handler.codec.http.HttpResponseStatus status,
java.lang.String text)
Creates new
RestResponseException. |
RestResponseException(io.netty.handler.codec.http.HttpResponseStatus status,
java.lang.String text,
java.lang.Throwable t)
Creates new
RestResponseException. |
| Modifier and Type | Method and Description |
|---|---|
io.netty.handler.codec.http.HttpResponseStatus |
getStatus() |
java.lang.String |
getText() |
public RestResponseException(io.netty.handler.codec.http.HttpResponseStatus status,
java.lang.String text)
RestResponseException.status - Status code returned to the client.text - Text returned to the client.public RestResponseException(io.netty.handler.codec.http.HttpResponseStatus status,
java.lang.String text,
java.lang.Throwable t)
RestResponseException.status - Status code returned to the client.text - Text returned to the client.t - Throwable instance.