我已经开始使用try-catch块(有点晚了,我知道!),但是现在我不知道一旦捕获到异常,该如何处理。我该怎么办?
Try
connection.Open()
Dim sqlCmd As New SqlCommand("do some SQL", connection)
Dim sqlDa As New SqlDataAdapter(sqlCmd)
sqlDa.Fill(dt)
Catch ex As SQLException
' Ahhhh, what to do now!!!?
Finally
connection.Close()
End Try