public class RestResponseException
extends java.lang.RuntimeException
InfinispanResponse 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 |
|---|---|
InfinispanResponse |
toResponse(InfinispanRequest request)
Creates Netty response based on error.
|
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.public InfinispanResponse toResponse(InfinispanRequest request)
request -