JAX-RS CXF: How to get Exception from ResponseExceptionMapper

588 views Asked by At

I have a provider at server to marshall MyException as follows

Response.ok(myExceptionObj, MediaType.APPLICATION_JSON).status(Response.Status.BAD_REQUEST).build();

I would like to know how I can implement ResponseExceptionMapper of CXF so that I can get the exception object back.

1

There are 1 answers

1
Chris On BEST ANSWER

I have used ResponseExceptionMapper to do the job for me.