Package com.dtrules.infrastructure

Examples of com.dtrules.infrastructure.RulesException


    /**
     * @see com.dtrules.interpreter.IRObject#booleanValue()
     */
  public boolean booleanValue() throws RulesException {
        throw new RulesException("Undefined","Conversion Error","No Boolean value exists for "+RSession.typeInt2Str(this.type()));
  }
View Full Code Here


    /**
     * @see com.dtrules.interpreter.IRObject#doubleValue()
     */
  public double doubleValue() throws RulesException {
        throw new RulesException("Undefined","Conversion Error","No double value exists for "+RSession.typeInt2Str(this.type()));
  }
View Full Code Here

    /**
     * @see com.dtrules.interpreter.IRObject#rEntityValue()
     */
  public IREntity rEntityValue() throws RulesException {
        throw new RulesException("Undefined","Conversion Error","No Entity value exists for "+RSession.typeInt2Str(this.type()));
  }
View Full Code Here

    /**
     * @see com.dtrules.interpreter.IRObject#hashMapValue()
     */
  @SuppressWarnings({"unchecked"})
  public HashMap hashMapValue() throws RulesException {
        throw new RulesException("Undefined","Conversion Error","No HashMap value exists for "+RSession.typeInt2Str(this.type()));
  }
View Full Code Here

    /**
     * @see com.dtrules.interpreter.IRObject#longValue()
     */
  public long longValue() throws RulesException {
        throw new RulesException("Undefined","Conversion Error","No Long value exists for "+RSession.typeInt2Str(this.type()));
  }
View Full Code Here

    /**
     * @see com.dtrules.interpreter.IRObject#rNameValue()
     */
  public RName rNameValue() throws RulesException {
        throw new RulesException("Undefined","Conversion Error","No Name value exists for "+RSession.typeInt2Str(this.type()));
  }
View Full Code Here

                        }
                    } else if (type == IRObject.iEntity) {
                        if(entity!=null){
                            value = entity;
                        }else{
                            throw new RulesException("MappingError","LoadDatamapData","Entity Tags have to create some Entity Reference");
                        }
                    } else if (type == IRObject.iString) {   
            value = RString.newRString(body.toString());
                    } else if (type == IRObject.iXmlValue){ 
                        if(xmltag != null){
                            value = new RXmlValue(state,xmltag);
                        }else{
                            throw new RulesException("MappingError","LoadDatamapData","Somehow we are missing the XML Tag for the attribute: "+a);
                        }
                    } else {
              throw new RulesException("MappingError","LoadDatamapData","Unsupported type encountered: "+RSession.typeInt2Str(type));
          }
          //   conversion in the Rules Engine to do the proper thing.
          state.def(a,value,false);
                    state.traceInfo("message","   /"+a+" \""+body+"\" def");
        }       
View Full Code Here

    /**
     * @see com.dtrules.interpreter.IRObject#rIntegerValue()
     */
  public RInteger rIntegerValue() throws RulesException {
        throw new RulesException("Undefined","Conversion Error","No Integer value exists for "+RSession.typeInt2Str(this.type()));
  }
View Full Code Here

    /**
     * @see com.dtrules.interpreter.IRObject#compare(IRObject)
     */
  public int compare(IRObject irObject) throws RulesException {
        throw new RulesException("Undefined","No Supported",RSession.typeInt2Str(this.type())+" Objects do not support Compare");
  }
View Full Code Here

    /**
     * @see com.dtrules.interpreter.IRObject#rTableValue()
     */
    public RTable rTableValue() throws RulesException {
        throw new RulesException("Undefined","Not Supported","No Table value exists for "+RSession.typeInt2Str(this.type()));
    }
View Full Code Here

TOP

Related Classes of com.dtrules.infrastructure.RulesException

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.