Examples of EvaluatorException


Examples of com.codingcrayons.aspectfaces.exceptions.EvaluatorException

      Evaluator evaluator;
      try {
        evaluator = (Evaluator) Class.forName(context.getConfiguration().getEvaluatorClassName()).newInstance();
      } catch (InstantiationException e) {
        throw new EvaluatorException("Evaluator " + context.getConfiguration().getEvaluatorClassName()
          + "can not be instantiated", e);
      } catch (IllegalAccessException e) {
        throw new EvaluatorException("Evaluator " + context.getConfiguration().getEvaluatorClassName()
          + "can not be instantiated", e);
      } catch (ClassNotFoundException e) {
        throw new EvaluatorException("Evaluator class " + context.getConfiguration().getEvaluatorClassName()
          + " not found", e);
      }

      if (!evaluator.evaluate(evaluable.getEvaluableValue(provider))) {
        this.metaProperty.setApplicable(false);
View Full Code Here

Examples of com.dotcms.repackage.org.mozilla.javascript.EvaluatorException

            Object fun = global.get(method, global);
            // NOTE: Source and line arguments are nonsense in a call().
            //       Any way to make these arguments *sensible?
            if (fun == Scriptable.NOT_FOUND)
                throw new EvaluatorException("function " + method +
                                             " not found.", "none", 0);

            cx.setOptimizationLevel(-1);
            cx.setGeneratingDebug(false);
            cx.setGeneratingSource(false);
View Full Code Here

Examples of com.google.javascript.jscomp.mozilla.rhino.EvaluatorException

  }

  @Override
  public EvaluatorException runtimeError(String message, String sourceName,
      int line, String lineSource, int lineOffset) {
    return new EvaluatorException("JSCompiler test code: " + message);
  }
View Full Code Here

Examples of com.google.javascript.rhino.EvaluatorException

      implements ErrorReporter {
    @Override
    public EvaluatorException runtimeError(String message, String sourceName,
                                           int line, String lineSource,
                                           int lineOffset) {
      return new EvaluatorException(message);
    }
View Full Code Here

Examples of de.innovationgate.ext.org.mozilla.javascript.EvaluatorException

        }
        else if (args[0] instanceof NativeObject) {
            design = new Design((NativeObject) args[0]);
        }
        else {
            throw new EvaluatorException("Global function localDB() needs either no or a custom TMLScript object as parameter");
        }
       
        return Design.db(cx, design, args, funObj);
    }
View Full Code Here

Examples of de.innovationgate.ext.org.mozilla.javascript.EvaluatorException

        throw runtimeError(message, sourceName, line, lineSource, lineOffset);

    }

    public EvaluatorException runtimeError(String message, String sourceName, int line, String lineSource, int lineOffset) {
        return new EvaluatorException(message, sourceName, line, lineSource, lineOffset);
    }
View Full Code Here

Examples of de.innovationgate.ext.org.mozilla.javascript.EvaluatorException

            // Go down packages from top level scope
            Iterator packages = WGUtils.deserializeCollection("Packages." + global.getRef(), ".").iterator();
            while (packages.hasNext()) {
                scope = (Scriptable) scope.get((String) packages.next(), scope);
                if (scope == null) {
                    throw new EvaluatorException("Unknown class or package in TMLScript global: " + global.getRef());
                }
            }

            return scope;

        }
        else if (global.getType() == TMLScriptGlobal.TYPE_OBJECT) {
            return global.getRef();
        }

        throw new EvaluatorException("Unknown TMLScript global type: " + global.getType());

    }
View Full Code Here

Examples of de.innovationgate.ext.org.mozilla.javascript.EvaluatorException

        // the action to perform in it's database
        TMLAction.Locator actionLocator = determineActionLocator(cx, thisObj, context, actionID);

        TMLAction action = context.getActionByID(actionLocator.getId(), actionLocator.getDbkey());
        if (action == null) {
            throw new EvaluatorException("Could not retrieve action for ID '" + actionID + "'");
        }

        TMLScriptRootScope rootScope = fetchRootScope(cx);

        // Call action
View Full Code Here

Examples of de.innovationgate.ext.org.mozilla.javascript.EvaluatorException

        TMLAction action;
        try {
            action = context.getModuleActionByID(actionLocator.getId(), actionLocator.getDbkey());
        }
        catch (TMLActionException e) {
            throw new EvaluatorException("Could not retrieve TMLScript module '" + args[0] + "': " + e.getMessage());
        }
        if (action == null) {
            throw new EvaluatorException("Could not retrieve TMLScript module '" + args[0] + "'");
        }

        // Fetch runtime and return function object
        RhinoExpressionEngineImpl runtime = fetchRuntime(cx);
       
View Full Code Here

Examples of eu.planets_project.pp.plato.evaluation.EvaluatorException

                }
            }
            return results;
           
        } catch (ParserConfigurationException e) {
            throw new EvaluatorException("Could not access PCDL descriptor", e);
        } catch (SAXException e) {
            throw new EvaluatorException("Could not access PCDL descriptor", e);
        } catch (IOException e) {
            throw new EvaluatorException("Could not access PCDL descriptor", e);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.