Package modTransf.engine

Examples of modTransf.engine.TransformationException


      ex.fillInStackTrace( this, args, "rule" );
      throw ex;
    }
    catch(Exception ex)
    { // Add trace
      TransformationException tex = new TransformationException(ex);
      tex.fillInStackTrace( this, args, "rule" );
      throw tex;
    }
  }
View Full Code Here


    {
      return request.getTransformation().getModels().getProperty(parentBean, propertyName);
    }
    catch(ModelException ex)
    {
      throw new TransformationException(ex);
    }
  }
View Full Code Here

      }
    }
    catch(ClassCastException ex)
    {
      ex.printStackTrace();
      throw new TransformationException("Property '" + propertyName +"' should denote a collection", ex);
    }
    catch(ModelException ex)
    {
      ex.printStackTrace();
      throw new TransformationException(ex);
    }
    catch(Exception ex)
    {
      ex.printStackTrace();
      throw new TransformationException(ex);
    }
  }
View Full Code Here

      catch( Exception ex )
       { // Add the stack trace.
         // This allow to have a list of the calls to the method.
         // This list is build only if an error occur.
       TransformationException tex = new TransformationException(ex);
       tex.fillInStackTrace( (Object)action, object, "action");
       throw tex;
       }

   return res;
   }
View Full Code Here

      return getDomain().getModelHelper(request).getProperty(parentBean, propertyName);
     // return request.getTransformation().getModels().getProperty(bean, propertyName);
    }
    catch(ModelException ex)
    {
      throw new TransformationException(ex);
    }
   }
View Full Code Here

          //request.getTransformation().getModels().setProperty(bean, propertyName, value);
        }
      }
      catch(ModelException ex)
      {
        throw new TransformationException(ex);
      }
     }
View Full Code Here

       else
         compiledScript = new StringCompiledExpression(msg);
    }
    catch(ScriptException ex)
    {
      throw new TransformationException(ex);
    }

    if(logName==null)
    { // Output in the system.out
      // Compute the message
View Full Code Here

      ScriptContext scriptContext = new RuleContextWrapperForScriptContext(request);
      return  compiledScript.eval(scriptContext);
    }
    catch(ScriptException ex)
    {
      throw new TransformationException(ex);
    }
  }
View Full Code Here

      //System.out.println("ScriptAction.execute()");
      return compiledScript.eval(scriptContext);
    }
    catch(ScriptException ex)
    {
      throw new TransformationException(ex);
    }
   }
View Full Code Here

      //System.out.println("guard.isAllowed():'" + res +"'.");
      return ((Boolean)res).booleanValue();
    }
    catch(NullPointerException ex)
    {
      throw new TransformationException("Expression value must return a boolean (found 'null' for '"
                                        + compiledScript + "')." );
    }
    catch(ClassCastException ex)
    {
      throw new TransformationException("Expression value must return a boolean ("
                                        + compiledScript + ")." );
    }
    catch(ScriptException ex)
    {
      throw new TransformationException(ex);
    }
   }
View Full Code Here

TOP

Related Classes of modTransf.engine.TransformationException

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.