When exceptions occur, the interceptor chain is processed in reverse
direction (same with JAX-WS handlers).  You'll need to do your error
handling towards the beginning of the service-side interceptor chain, not at
the end of it.

HTH,
Glen


sur04sep wrote:
> 
> Hi,
> I need to send custom error codes for all kind of exceptions(even run time
> exception).
> For this I wrote a OutInterceptor extending AbstractSoapInterceptor with
> super(Phase.MARSHAL) constructor.
> But control is not going to this interceptor in case of any run time
> exception. Only in case of successful processing control is coming to this
> interceptor.
> I have overridden both handleMessage  and handleFault methods.
> What I could be doing wrong?
> And what is the correct approach to handle exception?
> 
> Regards,
> seshu
> 

-- 
View this message in context: 
http://old.nabble.com/Exception-handling-tp28743320p28743501.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to