axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: custom  exceptions
Date Fri, 26 Mar 2004 19:45:17 GMT

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


                    03/26/2004           Subject:     custom exceptions                 
                    02:35 PM                                                             
                    Please respond                                                       
                    to axis-user                                                         


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

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,
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

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

Thanx in advance


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.

View raw message