public class RestResponseException extends 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,
String text)
Creates new
RestResponseException. |
RestResponseException(io.netty.handler.codec.http.HttpResponseStatus status,
String text,
Throwable t)
Creates new
RestResponseException. |
| Modifier and Type | Method and Description |
|---|---|
io.netty.handler.codec.http.HttpResponseStatus |
getStatus() |
String |
getText() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic RestResponseException(io.netty.handler.codec.http.HttpResponseStatus status,
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,
String text,
Throwable t)
RestResponseException.status - Status code returned to the client.text - Text returned to the client.t - Throwable instance.public io.netty.handler.codec.http.HttpResponseStatus getStatus()
public String getText()
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.