public class JaxRsExceptionInterceptor extends Object
| Constructor and Description |
|---|
JaxRsExceptionInterceptor()
The default constructor
|
| Modifier and Type | Method and Description |
|---|---|
JaxRsResponseException |
convertException(AbstractJaxRsProvider theServer,
Throwable theException)
This method convert an exception to a JaxRsResponseException
|
javax.ws.rs.core.Response |
convertExceptionIntoResponse(JaxRsRequest theRequest,
JaxRsResponseException theException)
This method converts an exception into a response
|
Object |
intercept(javax.interceptor.InvocationContext ctx)
This interceptor will catch all exception and convert them using the exceptionhandler
|
public JaxRsExceptionInterceptor()
public Object intercept(javax.interceptor.InvocationContext ctx) throws JaxRsResponseException
ctx - the invocation contextJaxRsResponseException - an exception that can be handled by a jee containerpublic JaxRsResponseException convertException(AbstractJaxRsProvider theServer, Throwable theException)
theServer - the providertheException - the exception to convertpublic javax.ws.rs.core.Response convertExceptionIntoResponse(JaxRsRequest theRequest, JaxRsResponseException theException) throws IOException
theRequest - the requesttheException - the thrown exceptionIOExceptionCopyright © 2014–2019 University Health Network. All rights reserved.