Examples of NoSuchEntryException


Examples of net.jini.config.NoSuchEntryException

        // 12
        final Throwable[] exceptionList2 = {
              new ConfigurationException(""),
              new ConfigurationNotFoundException(""),
              new NoSuchEntryException(""),
              new Error() };
        for (int e = 0; e < exceptionList2.length; ++e) {
            Throwable testException = exceptionList2[e];
            logger.log(Level.INFO, "-- subcase: " + testException);
            conf = new FakeAbstractConfiguration();
View Full Code Here

Examples of net.jini.config.NoSuchEntryException

                    lastReturn = new Primitive(subCase[1]);
                    return lastReturn;
                }
            }
        }
  throw new NoSuchEntryException(
          "entry not found for component " + component +
          ", name " + name);
    };
View Full Code Here

Examples of net.jini.config.NoSuchEntryException

        if (component == null || name == null || type == null) {
            throw new IllegalArgumentException("Component, name, and type cannot be null");
        }
        Entry entry = entries.get(component + '.' + name);
        if (entry == null) {
            throw new NoSuchEntryException("Entry not found for component [" + component + "], name [" + name + "]");
        }
        if (type == entry.type || type.isAssignableFrom(entry.type)) {
            if (entry.type.isPrimitive()) {
                return new Primitive(entry.value);
            } else {
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.