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 <nino.martinez.w...@gmail.com>:

> 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

Reply via email to