Package org.jtester.exception

Examples of org.jtester.exception.NoSuchFieldRuntimeException


      }
      return target;
    } catch (NoSuchFieldRuntimeException e) {
      if (throwNoProperty) {
        String clazname = object == null ? "null" : object.getClass().getName();
        throw new NoSuchFieldRuntimeException("can't find property[" + ognl + "] in object[" + clazname + "]",
            e);
      } else {
        return object;
      }
    }
View Full Code Here


    if (o instanceof Map) {
      Map map = (Map) o;
      if (map.containsKey(prop)) {
        return map.get(prop);
      } else {
        throw new NoSuchFieldRuntimeException("no key[" + prop + "] value in map.");
      }
    }

    Object target = ClazzHelper.getProxiedObject(o);
    try {
View Full Code Here

        return field;
      } catch (NoSuchFieldException e) {
        cls = cls.getSuperclass();
      }
    }
    throw new NoSuchFieldRuntimeException("No such field: " + name);
  }
View Full Code Here

TOP

Related Classes of org.jtester.exception.NoSuchFieldRuntimeException

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.