org.kie.remote.services.rest.exception
Class DescriptiveExceptionHandler
java.lang.Object
org.kie.remote.services.rest.exception.DescriptiveExceptionHandler
- All Implemented Interfaces:
- javax.ws.rs.ext.ExceptionMapper<Exception>
@Provider
@RequestScoped
public class DescriptiveExceptionHandler
- extends Object
- implements javax.ws.rs.ext.ExceptionMapper<Exception>
This class makes sure that exceptions thrown as a result of REST requests
are translated into a user-friendly output (with the correct REST error code)
for the client.
|
Field Summary |
protected javax.ws.rs.core.HttpHeaders |
headers
|
protected static org.slf4j.Logger |
logger
|
protected javax.ws.rs.core.UriInfo |
uriInfo
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static org.slf4j.Logger logger
uriInfo
@Context
protected javax.ws.rs.core.UriInfo uriInfo
headers
@Context
protected javax.ws.rs.core.HttpHeaders headers
DescriptiveExceptionHandler
public DescriptiveExceptionHandler()
toResponse
public javax.ws.rs.core.Response toResponse(Exception e)
- Specified by:
toResponse in interface javax.ws.rs.ext.ExceptionMapper<Exception>
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.