exception throwing between classes
1 posts in topic
Flat View  Flat View

Posted By:   david_ni
Posted On:   Tuesday, June 25, 2002 08:15 PM

I want to test whether excepiont is throwed and where will the exception be cathced.For example,Class A may throw a exception,i want to test whether Class B which usees Class A's function will catch the exception properly

Re: exception throwing between classes

Posted By:   Simon_Ablett  
Posted On:   Wednesday, June 26, 2002 04:50 AM

What do you mean by 'catch the exception properly'? The tip is not to use generic catch statements (i.e. 'catch( Exception ex)') but instead only have catches for the exceptions that you actually expect to be thrown.

About | Sitemap | Contact