public class RestResponseException extends 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,
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 |
|---|---|
InfinispanResponse |
toResponse(InfinispanRequest request)
Creates Netty response based on error.
|
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 InfinispanResponse toResponse(InfinispanRequest request)
request - Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.