----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: SitaramanM Message 4 in Discussion Hi Pooran : Though C#(in fact all .Net languages now ) offers "try catch finally" and probably is an answer to anand's problem, do note that "try, catch, finally" is NOT the equivalent of the "throws " clause Throws is a keyword by which the Checked Exceptions are implemented in the java programming language. Checked Exceptions are those exceptions which a developer of a consuming function() is forced to catch or throw explicitly back to its calling function . That is , if a function f1 is declared with the throws clause, lets say MyAppException, and another function f2 calls f1(), then f2 has to catch MyAppException or throw it to its calling function by another throws clause. This is what a checked exception basically means C# does not have this feature. There has been a lot of arguments on the [pros and cons of Checked Exceptions. The main reasons MS gives for not having Checked Exceptions are a) Versioning problems and b) Scalability. Check out this discussion for more details Why C# does not have Checked Exceptions : http://www.artima.com/intv/handcuffsP.html Interesting blog on Checked Exceptions : http://radio.weblogs.com/0122027/stories/2003/04/01/JavasCheckedExceptionsWereAMistake.html AnandRaj : Here why do u need checked exceptions at all. Can u pls explain ur exact requirement? hth regards, sr ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/BDotNet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
