You will be using both. Some exceptions you expect (and handle) other ones
you don't in which case they should fall to your unhandled exception
handler. Just be explicit as possible in your try catches ..
ex:
BAD
try {
File.Open ( ... )
}
catch(Exception Ex) {
MessageBox.Show("Could not open file " + Filename);
}
GOOD
try {
File.Open ( ... )
}
catch(FileNotFoundException Ex) {
MessageBox.Show("File not found " + Filename);
}
Cheers,
Greg Young
MVP - C#
http://codebetter.com/blogs/gregyoung
"Bruce One" <ra**@virtualsoftware.com.brwrote in message
news:E8**********************************@microsof t.com...
>I am developing a new project in which we should have a good Exception
Handling. Ive seen there is a Exception Handling App Block in Enterprise
Library, also I could use the Try-Catch structure itself...
What would be the best Approach ?