* Marking off which uses of catch (Exception e) is legit and which are not, for later removal/replacement.

This commit is contained in:
Adam Frisby
2008-02-06 15:30:02 +00:00
parent a37eb62047
commit f93fdfa5af
5 changed files with 12 additions and 12 deletions

View File

@@ -681,7 +681,7 @@ namespace OpenSim.Region.Terrain
}
return true;
}
catch (Exception e)
catch (Exception e) // SEMI-LEGIT: Catching problems caused by user input or scripts
{
resultText = "Error running terrain command: " + e.ToString();
return false;
@@ -1343,7 +1343,7 @@ namespace OpenSim.Region.Terrain
bmp.Save(filename, ImageFormat.Png);
}
catch (Exception e)
catch (Exception e) // LEGIT: Catching problems caused by OpenJPEG p/invoke
{
Console.WriteLine("Failed generating terrain map: " + e.ToString());
}
@@ -1362,7 +1362,7 @@ namespace OpenSim.Region.Terrain
imageData = OpenJPEG.EncodeFromImage(bmp, true);
}
catch (Exception e)
catch (Exception e) // LEGIT: Catching problems caused by OpenJPEG p/invoke
{
Console.WriteLine("Failed generating terrain map: " + e.ToString());
}