org.kie.services.remote.rest.exception
Class DescriptiveExceptionHandler
java.lang.Object
org.kie.services.remote.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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.