@Provider
@RequestScoped
public class DescriptiveExceptionHandler
extends Object
implements javax.ws.rs.ext.ExceptionMapper<KieRemoteRestOperationException>
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.