Handling Exceptions for Directories and Pathnames

When working with directories and pathnames, encountering exceptions is not so uncommon. Table 18.2 summarizes directory-related exceptions.

Image

TABLE 18.2 Directory-Related Exceptions

It is important to implement Try..Catch blocks for handling the previously described exceptions and provide the user the ability to escape from such situations.

Get Visual Basic 2015 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.