Examples of EngineException


Examples of modTransf.engine.EngineException

    if( descr == null )
      return;

    int requiredParameterCount = descr.size();
    if( requiredParameterCount != parameters.size() )
      throw new EngineException( "RuleCall - Rule '" + ruleName + "' requires "
                                 + requiredParameterCount +" parameters. "
                                 + parameters.size() + " are provided." );
  }
View Full Code Here

Examples of modTransf.engine.EngineException

          {
            setInitValueAction(new ScriptAction(initValueExpr, exprLanguage));
          }
          catch(ScriptException ex)
          {
            throw new EngineException(ex);
          }
         }

       super.engineStart(request);
     }
View Full Code Here

Examples of modTransf.engine.EngineException

    */
   public void engineStart(RuleContext context)
    throws EngineException
  {
     if( ruleName == null )
       throw new EngineException( "Attribute 'rule' is mandatory in tag <call> " );

     super.engineStart(context);
   }
View Full Code Here

Examples of modTransf.engine.EngineException

      {
      return (Transformation)digester.parse(input);
      }
     catch(Exception ex)
      {
      throw new EngineException( "Error while parsing file '" + filename + "'." , ex );
      }
  }
View Full Code Here

Examples of modTransf.engine.EngineException

      {
      return (Transformation)digester.parse(input);
      }
     catch(Exception ex)
      {
      throw new EngineException( "Error while parsing input." , ex );
      }
  }
View Full Code Here

Examples of modTransf.engine.EngineException

   */
  public void engineStart(RuleContext context)
    throws EngineException
  {
    if( rules.size() == 0 )
      throw new EngineException("CoreSelectRule - At least one rule must be registered.");

    cloneDescriptors( context );
  }
View Full Code Here

Examples of modTransf.engine.EngineException

    */
   public void engineStart(RuleContext context)
    throws EngineException
  {
    if( ruleNames == null )
      throw new EngineException( "Tag <ruleset rules='...'/>, attribute rules is mandatory." );

     String names[] = ruleNames.split(",");
     for(int i=0; i<names.length; i++)
     {
       String ruleName = names[i].trim();
       Rule rule = context.getTransformation().getRuleSet().getRule(ruleName);
       if(rule == null )
         throw new EngineException( "Tag <ruleset rules='"+ ruleName
                                    + "' />. Can't find rule '" + ruleName + "'." );
       addRule(rule);
     }
     super.engineStart(context);
   }
View Full Code Here

Examples of modTransf.engine.EngineException

          {
            setInitValueAction(new ScriptAction(initValueExpr, exprLanguage));
          }
          catch(ScriptException ex)
          {
            throw new EngineException(ex);
          }
         }

       super.engineStart(request);
     }
View Full Code Here

Examples of modTransf.engine.EngineException

    */
   public void engineStart(RuleContext context)
    throws EngineException
  {
     if( script == null )
       throw new EngineException( "Attribute 'expr' is mandatory in tag <arg> " );

      setUpCompiledExpression();
   }
View Full Code Here

Examples of modTransf.engine.EngineException

    if( script == null )
      script = body;

    if(script==null )
    {
      throw new EngineException("Attribute 'script' or element <body> is mandatory in tag <script> ");
    }
    try
    {
      setUpCompiledScript(script, language);
    }
    catch(ScriptException ex)
    {
      throw new EngineException("Exception in script='" + script + "'", ex);
    }
    catch(Exception ex)
    {
      throw new EngineException( "Exception in script='" + script + "'", ex);
    }
    catch(Error ex)
    {
      throw new EngineException( "Error in script='" + script + "'", ex);
    }
  }
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.