Package org.soybeanMilk.core.exe

Examples of org.soybeanMilk.core.exe.ArgPrepareExecuteException


      InvocationExecuteException ite=(InvocationExecuteException)cause;
      msg=ite.getCause().getMessage();
    }
    else if(cause instanceof ArgPrepareExecuteException)
    {
      ArgPrepareExecuteException apee=(ArgPrepareExecuteException)cause;
      Throwable th=apee.getCause();
     
      if(th instanceof ParamIllegalException)
      {
        ParamIllegalException pie=(ParamIllegalException)th;
       
        msg="The parameter [name: \""+pie.getParamName()+"\", value: \""+pie.getParamValue()+"\"]";
       
        Type targetType=pie.getTargetType();
        if(Integer.class.equals(targetType)
            || int.class.equals(targetType))
          msg+=" is not valid integer.";
        else
          msg+=" is invalid";
      }
      else
        msg+=apee.getMessage();
    }
    else
      msg="unknown error";
   
    return msg+" (\""+execution.getExecutable().getName()+"\")";
View Full Code Here


   
    ObjectSource os=new HashMapObjectSource(new DefaultGenericConverter());
    os.set("arg0", "arg0");
    os.set("arg1", "arg1");
   
    ArgPrepareExecuteException re=null;
    try
    {
      invoke.execute(os);
    }
    catch(ArgPrepareExecuteException e)
    {
      re=e;
    }
   
    Assert.assertTrue( (re.getInvoke() == invoke) );
    Assert.assertTrue( (re.getArg() == args[1]) );
    Assert.assertTrue( (re.getCause() instanceof ObjectSourceException) );
  }
View Full Code Here

        {
          values[i]=args[i].getValue(objectSource, methodInfo.getArgType(i), methodInfo.getMethod(), methodInfo.getMethodClass());
        }
        catch(Exception e)
        {
          throw new ArgPrepareExecuteException(this, i, e);
        }
      }
    }
   
    if(log.isDebugEnabled())
View Full Code Here

TOP

Related Classes of org.soybeanMilk.core.exe.ArgPrepareExecuteException

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.