NinetyNine's Treasure

| 积淀*育创新 智慧创造价值|

导航

请教:C# throw的作用

Posted on 2007-09-11 01:37  (NineTyNine)  阅读(3782)  评论(5编辑  收藏  举报
try
{
    checked
    {
        for(;nCurDig<=nComputeTo;nCurDig++)
        {
            nFactorial*=nCurDig;
        }
    }
}
catch(OverflowException oe)
{
    Console.WriteLine("Computing {0} caused an overflow exception",nComputeTo);
    throw;
}
请问:throw的作用是什么:是将异常抛出交给外部来做进一步的处理吗?它抛出的是oe吗?