I am using an ExceptionMapper in JAX-RS.
public class MyException implements ExceptionMapper<ConstraintViolationException> {
@Override
public Response toResponse(ConstraintViolationException exception) {
...
}
}
all works. However, is there anyway I can get a handle to the URL, or the HTTP request that generated the exception?
Thanks