R#4 - Ignoring second Catch statement
In this code:
try
{
context.Server.Transfer(url);
}
catch (ThreadAbortException)
{
//ignore the problem
}
catch (Exception)
{
throw; //all others
}
{
context.Server.Transfer(url);
}
catch (ThreadAbortException)
{
//ignore the problem
}
catch (Exception)
{
throw; //all others
}
The second catch statement is greyed out and the tooltip says "Catch clause
is redundent"
Glen
]]>
Please sign in to leave a comment.
--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"