C
Cramer
I just came across this code. The exception handling seems completely
pointless. Am I missing something?
try
{
con.Open();
da.Update(dsdata, "Products");
con.Close();
}
catch (SqlException)
{
throw;
}
Is there actually *any* good reason to catch an exception and then
immediately rethrow it without doing anything else?
pointless. Am I missing something?
try
{
con.Open();
da.Update(dsdata, "Products");
con.Close();
}
catch (SqlException)
{
throw;
}
Is there actually *any* good reason to catch an exception and then
immediately rethrow it without doing anything else?