473,386 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

exception info

Some of you guys (particularly the MVPs) are already aware of this, but i'll
post for the others who might not have seen it and might be interested
(btw - sorry for being absent for so long).
A while back there was a long discussion about checked exceptions and
expected exception lists. I couldn't say much because of the NDA, but MS
officially released some news on it a few months ago. While writing code,
catch statements will now display an intellisense list of known exceptions.
Of course, this assumes the author documented the code.

Happy coding!

-Rob Teixeira [MVP]
Nov 15 '05 #1
3 1128
n!
> officially released some news on it a few months ago. While writing code,
catch statements will now display an intellisense list of known exceptions. Of course, this assumes the author documented the code.


This is for the VS.NET Whidbey release (due later this year) though? Just in
case that confused someone :)

n!
Nov 15 '05 #2
Yeah, it is :-)
Sorry if that wasn't too clear. I couldn't find the original threads
anymore.

-Rob Teixeira [MVP]

"n!" <nf********@nomailplease.com> wrote in message
news:uF****************@TK2MSFTNGP12.phx.gbl...
officially released some news on it a few months ago. While writing code, catch statements will now display an intellisense list of known exceptions.
Of course, this assumes the author documented the code.


This is for the VS.NET Whidbey release (due later this year) though? Just

in case that confused someone :)

n!

Nov 15 '05 #3
Very cool.
I noticed the <exception> field in the XML portion of the method description
when documenting methods and wondered if that would ever make it to
intellisense. I've long believed that exceptions should be treated as 1st
class citizens.

Now I've a question for anyone interested: this allows us to document
exceptions that are specifically thrown by a method but there are two use
cases that this does not cover and I'd like to hear how others would handle
this. The cases are:
1. The method swallows all exceptions so that nothing that it does not throw
itself can be caught by the caller. In many cases no exceptions at all are
allowed to escape. In code terms...
void SomeMethod()
{
try{ //...code }
catch{} // swallows everything
}

2. The method does not swallow any exceptions so that anything that is
thrown can be caught by the caller. In code terms...
void SomeMethod()
{
}

There is obviously a spectrum here but I believe this represents two of the
boundary conditions. Thoughts?
"Rob Teixeira [MVP]" <RobTeixeira@@msn.com> wrote in message
news:ex****************@tk2msftngp13.phx.gbl...
Some of you guys (particularly the MVPs) are already aware of this, but i'll post for the others who might not have seen it and might be interested
(btw - sorry for being absent for so long).
A while back there was a long discussion about checked exceptions and
expected exception lists. I couldn't say much because of the NDA, but MS
officially released some news on it a few months ago. While writing code,
catch statements will now display an intellisense list of known exceptions. Of course, this assumes the author documented the code.

Happy coding!

-Rob Teixeira [MVP]

Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Andrew Chalk | last post by:
My app. sees an exception from the kernel at an obscure address, 0x7c59ba9d. When running under the VC++ 6.0 debugger, I can trap this each time it occurs. If I want to trap it in my program and...
6
by: Páll Ólafsson | last post by:
Hi I have a problem with the Microsoft.ApplicationBlocks.ExceptionManagement? I can't get it to work in RELEASE mode? If I run the project in debug mode the block works fine but when I run the...
0
by: Mrozik | last post by:
Hi! I have my own class "mtxApplicationException" bulid like shown in "MS Error Handling Block". When i use it in windows application everything works fine. But when I throw this exception in...
40
by: Kevin Yu | last post by:
is it a bad programming design to throw exception in the try block then catch it??
5
by: Nick Flandry | last post by:
I'm running into an Invalid Cast Exception on an ASP.NET application that runs fine in my development environment (Win2K server running IIS 5) and a test environment (also Win2K server running IIS...
7
by: Chuck Hartman | last post by:
I have a Windows service that requests web pages from a site using an HttpWebRequest object. When I try to request a page from an ASP.NET 2 site, I get a WebException with message "The remote...
2
by: Tim Reynolds | last post by:
Team, When my web service throws an exception and I am debugging on my PC - I get the exception back in my browser fine. My web.config shows <customErrors mode="Off"/> and this is working well. ...
3
by: Dan | last post by:
Hi all! When I throw my custom Exception class the first time in my code, the compiler takes a lot of time for find the following catch EX: try Throw New MyCustomException("test")
1
by: Brent Starkes | last post by:
Hi, I'm having a deserialization problem with a dll plug-in I'm writing, it serializes just fine but I'm getting an exception on the deserialization process. A first chance exception of type...
3
by: arasub | last post by:
ep 20, 2007 11:25:57 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.