Yes swapna dats right...define a userdefined exception class...throw that
exception obj in ur service method and dat service method should throws the
same exception object.//

On Fri, May 27, 2011 at 11:12 AM, swapna soni <ss...@nisum.com> wrote:

> Hi,
>
>  You can catch a custom Exception in your service and from there throw you
> custom exception.
>
> Thanks,
> Swapna Soni.
>
> -----Original Message-----
> From: Denise Wu [mailto:wadie...@gmail.com]
> Sent: Thursday, May 26, 2011 9:56 PM
> To: java-dev@axis.apache.org; java-u...@axis.apache.org
> Subject: Custom exceptions in axis2
>
> Hi,
>
> I created a custom exception on my server side but my client is always
> getting an AxisFault exception.
> Is there a way for the server to send instead the custom exception?
>
> Thanks for your help!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org
> For additional commands, e-mail: java-dev-h...@axis.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org
> For additional commands, e-mail: java-dev-h...@axis.apache.org
>
>


-- 
Regards,
Amarnath Redddy.G
91-9985923453.

Reply via email to