List Info

Thread: C-Sharp (C#) Group: Re: Exception Handling - A new question




C-Sharp (C#) Group: Re: Exception Handling - A new question
user name
2006-07-07 13:58:39
Roman,
     I believe that is what I said. If I did not articulate
that
correctly, then I do apologize. Below is an example of my
intended
post...
---
try
{
	// Give it a shot 'ol buddy.
	Lance.MakeSense();
}
catch (System.IO.DirectoryNotFoundException ex)
{
	// Do something in response to the
	// directory not existing.
}
catch (System.IO.IOException ex)
{
	// Do something based on any other
	// failed IO operation, but NOT the
	// DirectoryNotFoundException.
	// (e.g. FileNotFoundException,EndOfStreamException)
}
catch (System.Exception ex)
{
	// Do something based on any exception
	// that has not already been handled.
}
---
I hope that helps clear that up.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://groups.
google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )