Examples of RampException


Examples of edu.brown.cs.rampcommon.RampException

            if (arrParam.get(0).getClass().equals(objValue.getClass()))
            {
                arrParam.set(0, objValue);
            }else
            {
                throw new RampException(String.format("Cannot assign instance of %s to the parameter of type %s", objValue.getClass(), arrParam.get(0).getClass()));
            }
           
        }
    }
View Full Code Here

Examples of edu.brown.cs.rampcommon.RampException

     * Note: property values are not merged.
     */
    public void merge(CodeFragmentDescriptor cfSrc) throws RampException
    {
        if (!this.getName().equals(cfSrc.getName()))
            throw new RampException(String.format("Can't merge code fragments %s and %s as they have different names",
                    this.getName(), cfSrc.getName()));
        if (this.getCodeFragmentType() != cfSrc.getCodeFragmentType())
            throw new RampException(String.format("Can't merge code fragments %s and %s as they have different types %s and %s",
                    this.getName(), cfSrc.getName(), this.getCodeFragmentType(), cfSrc.getCodeFragmentType()));
       
        //Merging parameters
        Set<CodeFragmentParam> strParamNames = cfSrc.getParameters().keySet();
        for (CodeFragmentParam paramType:strParamNames)
View Full Code Here

Examples of edu.brown.cs.rampcommon.RampException

                }else if(strClassName.equals("java.lang.String"))
                {
                    addStringParameter(paramType, strValue);
                }else
                {
                    throw new RampException("Parameter class "+strClassName+" is not supported");
                }

            }

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