try
{
try
{
throw new Exception("From Try");
}
catch
{
throw new Exception("From Catch");
}
finally
{
throw new Exception("From Finally");
}
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
上面代码的输出是:From Finally
.
为什么不是From Catch
?
-或者-
我如何从两个异常之外捕获和记录?