I would think that was exactly what org.apache.cxf.jaxrs.validation.ValidationExceptionMapper did?
regards Nino On Wed, Nov 29, 2017 at 9:10 AM, David Karlsen <[email protected]> wrote: > You could maybe implement an ExceptionMapper to handle them and transform > over to the wanted output format: > https://docs.oracle.com/javaee/7/api/javax/ws/rs/ext/ExceptionMapper.html > https://dennis-xlc.gitbooks.io/restful-java-with-jax-rs-2- > 0-2rd-edition/en/part1/chapter7/exception_handling.html > > > 2017-11-29 8:51 GMT+01:00 nino martinez wael <[email protected] > >: > > > Hi are there anyway to setup so the response vill give a more verbose > > output when validation fails? > > > > Currently when my validation fails, all constraints are printed in the > > server log with details, but the client just receive a 400 bad request.. > > > > Would be very nice for the client a little more detail on what went > wrong.. > > > > -- > > Best regards / Med venlig hilsen > > Nino Martinez > > > > > > -- > -- > David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen > -- Best regards / Med venlig hilsen Nino Martinez
