先抛出来的那个就丢了。
try
{
try
{
try
{
int i = 2;
if (i > 1)
throw new AException("AException");
}
finally
{
throw new BException("BException");
}
}
catch (BException e)
{
Console.WriteLine(e.Message);
}
}
catch (AException e)
{
Console.WriteLine( e.Message);
}
最后结果只有一个 Bexception.