B
Brian Nicholson
How do I know which exceptions a function throws? In my application, I make
a call to DirectoryInfo.GetDirectories("\\NetworkPath\Path"). I check for
System.IO.DirectoryNotFoundException and Security.SecurityException (which I
found in the Object Browser with VS2005). If Path is invalid, the block
catches System.IO.DirectoryNotFoundException as expected. However, if
NetworkPath is invalid, it instead throws a System.IO.IOException, which I
didn't see in the Object Browser. What documentation describes this behavior?
a call to DirectoryInfo.GetDirectories("\\NetworkPath\Path"). I check for
System.IO.DirectoryNotFoundException and Security.SecurityException (which I
found in the Object Browser with VS2005). If Path is invalid, the block
catches System.IO.DirectoryNotFoundException as expected. However, if
NetworkPath is invalid, it instead throws a System.IO.IOException, which I
didn't see in the Object Browser. What documentation describes this behavior?