Package org.msgpack.template

Examples of org.msgpack.template.TemplateBuildException


    return buildTemplate(targetClass, entries);
  }

  protected void checkValidation(Class<?> targetClass) {
    if(targetClass.isInterface()) {
      throw new TemplateBuildException("Cannot build template of interface");
    }
    if(targetClass.isArray()) {
      throw new TemplateBuildException("Cannot build template of array class");
    }
    if(targetClass.isPrimitive()) {
      throw new TemplateBuildException("Cannot build template of primitive type");
    }
  }
View Full Code Here


    return new ReflectionOrdinalEnumTemplate(entries);
  }

  private void checkOrdinalEnumValidation(Class<?> targetClass) {
    if(!targetClass.isEnum()) {
      throw new TemplateBuildException("tried to build ordinal enum template of non-enum class");
    }
  }
View Full Code Here

TOP

Related Classes of org.msgpack.template.TemplateBuildException

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.