public void run(AppConfiguration config, Environment env) throws
Exception {
AbstractServerFactory sf = (AbstractServerFactory)
config.getServerFactory();
// disable default dropwizard exception mappers
sf.setRegisterDefaultExceptionMappers(false);
On Wednesday, January 25, 2017 at 6:13:47 PM UTC+1, Jacek Furmankiewicz
wrote:
>
> We want to remove the default mapper Dropwizard adds for
> JerseyViolationException
> and instead use our own custom one.
>
> Right now it seems indeterministic which one gets used.
>
> We now have to separate mappers for JerseyViolationException registered,
> one from DW and one from us.
>
> Whenever we re-start the app it seems random which one actually gets used.
>
> How to we remove the one created by Dropwizard?
>
> Thanks
> Jacek
>
--
You received this message because you are subscribed to the Google Groups
"dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.