|
|
#9 |
|
Участник
|
X++: .....
catch (Exception::DuplicateKeyException)
{
// Prevent an endless loop
if (tryCount < 5)
{
retry;
}
else
{
throw Exception::DuplicateKeyExceptionNotRecovered;
}
}
|
|
|