//替換成你的循環
for (int i = 0; i < 10; i++)
{
    try
    {
        //插入的語句
    }
    catch (Exception)
    {
        //記錄錯誤,不要throw
    }
}