you can debug
in org.apache.cxf.jaxrs.provider.ProviderFactory#doCreateExceptionMapper
but sorting should be good


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com>

2015-03-27 10:44 GMT+01:00 Alex Soto <[email protected]>:

> yes
>
> Mar 27, 2015 10:13:35 AM org.apache.openejb.server.cxf.rs.CxfRsHttpListener
> configureFactory
> INFO:      com.scytl.cdi.tracker.ExceptionHandler@7e82400
> Mar 27, 2015 10:13:35 AM org.apache.openejb.server.cxf.rs.CxfRsHttpListener
> configureFactory
> INFO:      com.scytl.cdi.tracker.UserWebServiceExceptionHandler@7c479fa0
>
> El dv., 27 març, 2015 a les 10:36, Romain Manni-Bucau (<
> [email protected]>) va escriure:
>
> > Hi Alex
> >
> > are both registered (ie logged at startup)?
> >
> >
> > Romain Manni-Bucau
> > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > <http://rmannibucau.wordpress.com> | Github <https://github.com/
> > rmannibucau> |
> > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
> > <http://www.tomitribe.com>
> >
> > 2015-03-27 10:26 GMT+01:00 Alex Soto <[email protected]>:
> >
> > > Hi guys,
> > > I am trying to write two exception mappers, one that handles exception
> A
> > > and another one that handles java.lang.Exception.
> > >
> > > I don't know why but if I throw the A exception the handler that
> catches
> > > the exception is the java.lang.Exception one instead of the one that
> > > handles A exception.
> > >
> > > According to spec:
> > >
> > > When choosing an exception mapping provider to map an exception, an
> > > implementation MUST use the provider whose generic type is the nearest
> > > superclass of the exception.
> > >
> > > So I think that in this case the nearest one is the expcetion itself
> (A)
> > > and not Exception.
> > >
> > > Any hint?
> > >
> > > Thank you so much.
> > >
> >
>

Reply via email to