尝试Catch块

MOZ*_*LLA 1 vb.net exception-handling

我有以下代码

Try
    'Some code that causes exception
Catch ex as ExceptionType1
    'Handle Section - 1
Catch ex as ExceptionType2
    'Handle section - 2
Catch ex as ExceptionType3
    'Handle section - 3    
Finally
    ' Clean up
End Try
Run Code Online (Sandbox Code Playgroud)

假设由部分-1处理的代码抛出ExceptionType1.在第1部分中处理之后,我可以将控制权传递给第2部分/第3部分吗?那可能吗?

kem*_*002 9

更改代码以捕获一个块中的所有异常,并从那里确定类型和执行路径.