mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 22:26:09 +08:00
* Marking off which uses of catch (Exception e) is legit and which are not, for later removal/replacement.
This commit is contained in:
@@ -318,7 +318,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
|
||||
{
|
||||
File.Delete(OutFile);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (Exception e) // NOTLEGIT - Should be just catching FileIOException
|
||||
{
|
||||
//m_scriptEngine.Log.Error("[" + m_scriptEngine.ScriptEngineName + "]: Unable to delete old existring script-file before writing new. Compile aborted: " + e.ToString());
|
||||
throw new Exception("Unable to delete old existring script-file before writing new. Compile aborted: " + e.ToString());
|
||||
@@ -335,7 +335,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
|
||||
Path.Combine("ScriptEngines", srcFileName),
|
||||
Script);
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch (Exception ex) // NOTLEGIT - Should be just catching FileIOException
|
||||
{
|
||||
m_scriptEngine.Log.Error("[" + m_scriptEngine.ScriptEngineName + "]: Exception while trying to write script source to file \"" + srcFileName + "\": " + ex.ToString());
|
||||
}
|
||||
|
||||
@@ -105,7 +105,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||
// Fire the first start-event
|
||||
m_scriptEngine.m_EventQueueManager.AddToScriptQueue(localID, itemID, "state_entry", EventQueueManager.llDetectNull, new object[] { });
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (Exception e) // LEGIT: User Scripting
|
||||
{
|
||||
//m_scriptEngine.Log.Error("[ScriptEngine]: Error compiling script: " + e.ToString());
|
||||
try
|
||||
@@ -117,7 +117,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||
World.SimChat(Helpers.StringToField(text), ChatTypeEnum.Say, 0, m_host.AbsolutePosition,
|
||||
m_host.Name, m_host.UUID);
|
||||
}
|
||||
catch (Exception e2)
|
||||
catch (Exception e2) // LEGIT: User Scripting
|
||||
{
|
||||
m_scriptEngine.Log.Error("[" + m_scriptEngine.ScriptEngineName + "]: Error displaying error in-world: " + e2.ToString());
|
||||
m_scriptEngine.Log.Error("[" + m_scriptEngine.ScriptEngineName + "]: " +
|
||||
@@ -154,7 +154,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||
// Tell AppDomain that we have stopped script
|
||||
m_scriptEngine.m_AppDomainManager.StopScript(ad);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (Exception e) // LEGIT: User Scripting
|
||||
{
|
||||
m_scriptEngine.Log.Error("[" + m_scriptEngine.ScriptEngineName + "]: Exception stopping script localID: " + localID + " LLUID: " + itemID.ToString() +
|
||||
": " + e.ToString());
|
||||
|
||||
Reference in New Issue
Block a user