Package modTransf.engine

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


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

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

    */
   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

    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

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

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

    if( path!= null || filename!=null || fileExt!=null )
      this.writerDesc = new WriterDescriptor( path, filename, fileExt, exprLanguage);

    if( template!=null && inlineTemplate!= null )
      throw new EngineException( tag + " Exactly one of 'template' or 'body template' should be specified." );

    if( template==null && inlineTemplate== null )
      throw new EngineException( tag + " Exactly one of 'template' or 'body template' should be specified." );

    if( writerName!=null && writerDesc!= null )
      throw new EngineException( tag + " Only one of 'writerName' or 'writerDesc' should be specified." );

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

TOP

Related Classes of modTransf.engine.EngineException

Copyright © 2018 www.massapicom. 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.