You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by sy...@apache.org on 2005/09/22 10:53:13 UTC

svn commit: r290909 - /cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/flow/javascript/fom/FOM_JavaScriptInterpreter.java

Author: sylvain
Date: Thu Sep 22 01:53:10 2005
New Revision: 290909

URL: http://svn.apache.org/viewcvs?rev=290909&view=rev
Log:
Better error messages

Modified:
    cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/flow/javascript/fom/FOM_JavaScriptInterpreter.java

Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/flow/javascript/fom/FOM_JavaScriptInterpreter.java
URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/flow/javascript/fom/FOM_JavaScriptInterpreter.java?rev=290909&r1=290908&r2=290909&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/flow/javascript/fom/FOM_JavaScriptInterpreter.java (original)
+++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/flow/javascript/fom/FOM_JavaScriptInterpreter.java Thu Sep 22 01:53:10 2005
@@ -757,7 +757,7 @@
                     thrScope.setLock(true);
                     ScriptRuntime.call(context, fun, thrScope, funArgs, thrScope);
                 } catch (JavaScriptException ex) {
-                    throw locationTracker.getException("Calling function " + funName, ex);
+                    throw locationTracker.getException("Error calling flowscript function " + funName, ex);
 //                    EvaluatorException ee = Context.reportRuntimeError(
 //                                                                       ToolErrorReporter.getMessage("msg.uncaughtJSException",
 //                                                                                                    ex.getMessage()));
@@ -768,7 +768,7 @@
 //                    throw new CascadingRuntimeException(ee.getMessage(),
 //                                                        unwrapped);
                 } catch (EcmaError ee) {
-                    throw locationTracker.getException("Calling function " + funName, ee);
+                    throw locationTracker.getException("Error calling flowscript function " + funName, ee);
 //                    String msg = ToolErrorReporter.getMessage("msg.uncaughtJSException", ee.toString());
 //                    if (ee.getSourceName() != null) {
 //                        Context.reportRuntimeError(msg, ee.getSourceName(),
@@ -853,7 +853,7 @@
                     ScriptableObject.callMethod(cocoon,
                                                 "handleContinuation", args);
                 } catch (JavaScriptException ex) {
-                    throw locationTracker.getException("Calling continuation", ex);
+                    throw locationTracker.getException("Error calling continuation", ex);
 //                    EvaluatorException ee = Context.reportRuntimeError(
 //                                                                       ToolErrorReporter.getMessage("msg.uncaughtJSException",
 //                                                                                                    ex.getMessage()));
@@ -864,7 +864,7 @@
 //                    throw new CascadingRuntimeException(ee.getMessage(),
 //                                                        unwrapped);
                 } catch (EcmaError ee) {
-                    throw locationTracker.getException("Calling continuation", ee);
+                    throw locationTracker.getException("Error calling continuation", ee);
 //                    String msg = ToolErrorReporter.getMessage("msg.uncaughtJSException", ee.toString());
 //                    if (ee.getSourceName() != null) {
 //                        Context.reportRuntimeError(msg, ee.getSourceName(),