Hi!
I'm having problem with try catch when running MySqlDataAdapter.Update! I have the MySqlDataAdapter.Update in a try-catch block, but it still throws an exception! Is this a known problem or am I doing something wrong?
MyCode:
private void Update(MySqlDataAdapter adapter, DataTable table)
{
try
{
adapter.Update(table);
}
catch (MySqlException e)
{
MessageBox.Show(e.ToString());
}
}
I have tried with Exception instead of MySqlException, but it didn't help!
I'm having problem with try catch when running MySqlDataAdapter.Update! I have the MySqlDataAdapter.Update in a try-catch block, but it still throws an exception! Is this a known problem or am I doing something wrong?
MyCode:
private void Update(MySqlDataAdapter adapter, DataTable table)
{
try
{
adapter.Update(table);
}
catch (MySqlException e)
{
MessageBox.Show(e.ToString());
}
}
I have tried with Exception instead of MySqlException, but it didn't help!