Sub main() 
 Try 
     Try 
         Throw New ApplicationException("First ") 
     Catch ex As ApplicationException 
        Console.WriteLine(ex.Message & _ 
        "captured by the inner ApplicationException catch block") 
         Throw New Exception("Second ") 
     Catch ex As Exception 
         Console.WriteLine(ex.Message & _ 
             "captured by the inner Exception catch block") 
         Throw New ArgumentException("Third ") 
     End Try 
 Catch ex As Exception 
     Console.WriteLine(ex.Message & _ 
         "captured by the outer Exception catch block") 
 End Try 
 Console.ReadLine() 
End Sub 
