Chris Brumme - How about a type-specific try-catch mechanism for Intellisense?
- Posted: Jul 01, 2004 at 10:19 AM
- 14,577 Views
- 3 Comments
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Right click “Save as…”
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums,
or
Contact Us and let us know.
Follow the Discussion
Oops, something didn't work.
What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in. You need to be signed in to Channel 9 to use this feature.What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in and view them all on your notifications page.sign up for email notifications?
I must say that i do not miss it when using .NET at all.
I haven't use Java however I can see that checked exceptions might be a bit too much of a versioning hassle. OTOH the concept does appeal to my meticulous side. I think the concept of a non-enforced checked exception (perhaps a better name is "documented exceptions") is a good idea. I have run into exceptions in shipping code that weren't documented in the MSDN docs! So even though I thought I was handling everything, I wasn't. And the real drag of it all was that it wasn't a fatal exception. It was something, that if I had caught it I could have put a message to the user that they needed to re-install/repair in order to use a particular feature. I am also intrigued by the concept of slicing exceptions in a different fashion besides inheritance hierarchy. I have always thought the .NET exception hierarchy could be better. There are some exceptions that inherit directly from System.Exception. Other inherit from the vestigial System.ApplicationException. And worse, it is not easy to tell which exceptions should only be thrown by the runtime like System.NullReferenceException or System.IndexOutOfRangeException. I still occassionally catch folks throwing those exceptions rather than the ones deriving from System.ArgumentException. Perhaps all the runtime exceptions should implement an attribute or marker interface like IFatalException or IRuntimeError or something like that.
Remove this comment
Remove this thread
close