When scripts generate expected exceptions (e.g. due to checked bad parameter) throw ScriptException instead of just a plain old exception.

This is to make it easier to distinguish these exceptions from unexpected OpenSimulator problems internally and in regression tests.
No functional changes.
This commit is contained in:
Justin Clark-Casey (justincc)
2012-10-25 02:52:20 +01:00
parent ae662b54ea
commit d9aaf51561
5 changed files with 52 additions and 9 deletions

View File

@@ -210,7 +210,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
internal void OSSLError(string msg)
{
throw new Exception("OSSL Runtime Error: " + msg);
throw new ScriptException("OSSL Runtime Error: " + msg);
}
/// <summary>