cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r396452 - /cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/flow/javascript/fom/FOM_JavaScriptInterpreter.java
Date Mon, 24 Apr 2006 06:29:10 GMT
Author: antonio
Date: Sun Apr 23 23:29:08 2006
New Revision: 396452

URL: http://svn.apache.org/viewcvs?rev=396452&view=rev
Log:
Remove unused commented code.

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=396452&r1=396451&r2=396452&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
Sun Apr 23 23:29:08 2006
@@ -760,26 +760,8 @@
                     ScriptRuntime.call(context, fun, thrScope, funArgs, thrScope);
                 } catch (JavaScriptException ex) {
                     throw locationTracker.getException("Error calling flowscript function
" + funName, ex);
-//                    EvaluatorException ee = Context.reportRuntimeError(
-//                                                                       ToolErrorReporter.getMessage("msg.uncaughtJSException",
-//                                                                                      
             ex.getMessage()));
-//                    Throwable unwrapped = unwrap(ex);
-//                    if (unwrapped instanceof ProcessingException) {
-//                        throw (ProcessingException) unwrapped;
-//                    }
-//                    throw new CascadingRuntimeException(ee.getMessage(),
-//                                                        unwrapped);
                 } catch (EcmaError 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(),
-//                                                   ee.getLineNumber(), ee.getLineSource(),
-//                                                   ee.getColumnNumber());
-//                    } else {
-//                        Context.reportRuntimeError(msg);
-//                    }
-//                    throw new CascadingRuntimeException(ee.getMessage(), ee);
                 }
             } finally {
                 thrScope.setLock(false);
@@ -856,26 +838,8 @@
                                                 "handleContinuation", args);
                 } catch (JavaScriptException ex) {
                     throw locationTracker.getException("Error calling continuation", ex);
-//                    EvaluatorException ee = Context.reportRuntimeError(
-//                                                                       ToolErrorReporter.getMessage("msg.uncaughtJSException",
-//                                                                                      
             ex.getMessage()));
-//                    Throwable unwrapped = unwrap(ex);
-//                    if (unwrapped instanceof ProcessingException) {
-//                        throw (ProcessingException)unwrapped;
-//                    }
-//                    throw new CascadingRuntimeException(ee.getMessage(),
-//                                                        unwrapped);
                 } catch (EcmaError 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(),
-//                                                   ee.getLineNumber(), ee.getLineSource(),
-//                                                   ee.getColumnNumber());
-//                    } else {
-//                        Context.reportRuntimeError(msg);
-//                    }
-//                    throw new CascadingRuntimeException(ee.getMessage(), ee);
                 }
             } finally {
                 kScope.setLock(false);



Mime
View raw message