Sacha,

Have you tried extending AxisFault?  That's what we do and it seems to work
well enough...


Ian




                                                                                       
                       
                    [EMAIL PROTECTED]                                                  
                          
                    om.pl                To:     [EMAIL PROTECTED]                     
                 
                                         cc:                                           
                       
                    03/26/2004           Subject:     custom�exceptions                
                       
                    02:35 PM                                                           
                       
                    Please respond                                                     
                       
                    to axis-user                                                       
                       
                                                                                       
                       
                                                                                       
                       




Hi.

Has anybody any experience with custom exceptions in axis? I
tried to throw my own checked exception, but always get AxisFault,
containing only stack trace as details and Server.userException as a fault
code.

I looked into the axis source code and it seems there is no way to throw
custom exceptions. The critical part (as I guessed) is AxisFault.java,
method initFromException(Exception target). It does not serialize target
exception to XML - it simply gets the stack trace and a class name.

Another method is initFromSOAPFaultException(SOAPFaultException fault),
but SOAPFaultException not seems to be intended to use by business
classes.

Is there any way to fix this problem, or this is a bug?

Thanx in advance

MJS







This transmission may contain information that is privileged, confidential and/or 
exempt from disclosure under applicable law. If you are not the intended recipient, 
you are hereby notified that any disclosure, copying, distribution, or use of the 
information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. 
If you received this transmission in error, please immediately contact the sender and 
destroy the material in its entirety, whether in electronic or hard copy format. Thank 
you.

Reply via email to