Hello.
 
Thanks Subhendu for your reply.
 
Actually I am using AXIS 1.1, but I have not idea on how to catch custom exceptions. I have declared my code to catch both Customexception and axisfault, but the exception is always catched in the catch (axisfault e), not in catch (customexception e) . If I do not extend my custom exception to an axisfault, it does not permit me to catch the custom exception (custom exception is not throwable).
 
Any help would be greatly appreciated.
 
Thanks.
----- Original Message -----
Sent: Thursday, July 24, 2003 9:27 PM
Subject: RE: NEWBIE: Custom exception problem

I think your exception class does not have to extend Axis Fault. You have to Use AXIS 1.1.

 

Thanks,

Subehndu

 

-----Original Message-----
From: Benedick Mark Chan [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 12:00 AM
To: [EMAIL PROTECTED]
Subject: NEWBIE: Custom exception problem

 

Hello,

 

 

 

I have created a custom exception in my server that extends AxisFault. In my client, I catched the custom exception.

 

Server throws CustomException ()

 

Client:

try {

}

catch (CustomException e) {

}

catch (AxisFault e) {

}

 

Why is it that in my client code, the custom exception is not being catched, but rather, it is catched in the axisfault.

 

By the way, I also did bean mapping.

 

 

Thanks.

Reply via email to