Peter works as a Software Developer for PentaSoft Inc. He develops an application, named App1, using Visual C# .NET. The application is intended to deal with several file input and output operations. He uses the following try structure in the application code to handle errors that occur during the execution of App1.
try
{
//Statements that might cause a runtime error.
}
catch (System.IO.FileNotFoundException ex)
{
//Statements
}
catch (System.IO.PathTooLongException ex)
{
//Statements
}
catch (System.IO.IOException ex)
{
//Statements
}
catch (Exception ex)
{
//Statements
}
What will happen if an exception of type System.IO.DirectoryNotFoundException occurs in the try block?
Submit