B
beta2000
I want to try Refresh() again if the first Refresh() fails. Code:
try
{
try
{
Refresh(); // ... first attempt...
}
catch(...)
{
Refresh(); // ... second attempt...
}
}
catch(...)
{
// Display error message (both attempts failed)
}
My question is -- Is this a good style? Is there a way to not use so
many try/catch and still attempt the operation up to 2 times?
try
{
try
{
Refresh(); // ... first attempt...
}
catch(...)
{
Refresh(); // ... second attempt...
}
}
catch(...)
{
// Display error message (both attempts failed)
}
My question is -- Is this a good style? Is there a way to not use so
many try/catch and still attempt the operation up to 2 times?