Try-Catch以及如何在catch块中抛出工作

Nov*_*per 4 try-catch

我对投掷有疑问.如何在以下代码中使用throw?catch块是否返回false?

try
{
    //code
}
catch(Exception ex)
{
    throw;
    return false;
}
Run Code Online (Sandbox Code Playgroud)

Lou*_*nco 12

不,它重新抛出.调用堆栈的某个地方需要捕获它.

return false从未达到.