diff options
author | Justin Clark-Casey (justincc) | 2012-10-25 02:52:20 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-10-25 02:52:20 +0100 |
commit | d9aaf51561ea7bb2ee030c648611a5281f21ec49 (patch) | |
tree | f28a621e8fbfb2d2c7ffa321cef50228bc162a06 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |
parent | Make osNpcCreate() return UUID.Zero instead of throwing an exception if notec... (diff) | |
download | opensim-SC_OLD-d9aaf51561ea7bb2ee030c648611a5281f21ec49.zip opensim-SC_OLD-d9aaf51561ea7bb2ee030c648611a5281f21ec49.tar.gz opensim-SC_OLD-d9aaf51561ea7bb2ee030c648611a5281f21ec49.tar.bz2 opensim-SC_OLD-d9aaf51561ea7bb2ee030c648611a5281f21ec49.tar.xz |
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.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 804b0af..5301ccd 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -210,7 +210,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
210 | 210 | ||
211 | internal void OSSLError(string msg) | 211 | internal void OSSLError(string msg) |
212 | { | 212 | { |
213 | throw new Exception("OSSL Runtime Error: " + msg); | 213 | throw new ScriptException("OSSL Runtime Error: " + msg); |
214 | } | 214 | } |
215 | 215 | ||
216 | /// <summary> | 216 | /// <summary> |