Change JavaScriptException to EvaluatorException, fix Javadoc.

This commit is contained in:
hns 2003-12-18 09:28:23 +00:00
parent 026d6e1429
commit 7cf471b69b

View file

@ -30,12 +30,12 @@ import java.lang.reflect.Method;
* All argument conversion is done automatically. Currently the following argument and return * All argument conversion is done automatically. Currently the following argument and return
* types are supported: * types are supported:
* <ul> * <ul>
* <li> plain objects (with all properties returned by ESObject.getProperties ()) * <li> plain objects (with all properties returned by ESObject.getProperties ())</li>
* <li> arrays * <li> arrays</li>
* <li> strings * <li> strings</li>
* <li> date objects * <li> date objects</li>
* <li> booleans * <li> booleans</li>
* <li> integer and float numbers (long values are not supported!) * <li> integer and float numbers (long values are not supported!)</li>
* </ul> * </ul>
* *
*/ */
@ -100,10 +100,10 @@ public class XmlRpcObject extends BaseFunction {
Scriptable scope, Scriptable scope,
Scriptable thisObj, Scriptable thisObj,
Object[] args) Object[] args)
throws JavaScriptException { throws EvaluatorException {
if (method == null) { if (method == null) {
throw new JavaScriptException("Invalid method name"); throw new EvaluatorException("Invalid method name");
} }
RhinoEngine engine = (RhinoEngine) cx.getThreadLocal("engine"); RhinoEngine engine = (RhinoEngine) cx.getThreadLocal("engine");