Examples of MisconfigurationException


Examples of com.ontology2.centipede.errors.MisconfigurationException

        this.name=o.name();
        this.defaultValue=o.defaultValue();
        this.description=o.description();
        if(!Object.class.equals(o.contextualConverter())
            &&  !ContextualConverter.class.isAssignableFrom(o.contextualConverter()))
            throw new MisconfigurationException("A contextualConverter must be a ContextualConverter for option "+name);
        this.substitutor=o.contextualConverter();
    }
View Full Code Here

Examples of com.ontology2.centipede.errors.MisconfigurationException

        } else {
            try {
                ContextualConverter<?> cc=(ContextualConverter <?>) getContextualConverter().newInstance();
                return cc.convert(value, context);
            } catch(InstantiationException x) {
                throw new MisconfigurationException("The contextual converter "+getContextualConverter()+" must have a zero argument constructor");
            }
        }
    };
View Full Code Here

Examples of com.ontology2.centipede.errors.MisconfigurationException

     AbstractApplicationContext createApplicationContext(CentipedeShellOptions centipedeOptions, List<String> contextPath) {
        contextPath.addAll(centipedeOptions.applicationContext);
        contextPath.addAll(centipedeOptions.applicationContext);

        if(centipedeOptions.eager && centipedeOptions.lazy)
            throw new MisconfigurationException("Cannot force eager and lazy load at same time");

        Boolean forcedMode =
                centipedeOptions.lazy ? Boolean.TRUE :
                        (centipedeOptions.eager ? Boolean.FALSE : isLazyByDefault());
View Full Code Here

Examples of org.python.pydev.core.MisconfigurationException

     * @throws CoreException if root node is not present
     */
    private synchronized Node getRootNodeInXml() throws MisconfigurationException {
        traceFunc("getRootNodeInXml");
        if (document == null) {
            throw new MisconfigurationException("Found null XML document. Please check if " + this.xmlFile
                    + " is a valid XML file.");
        }
        NodeList nodeList = document.getElementsByTagName("pydev_project");
        Node ret = null;
        if (nodeList != null && nodeList.getLength() > 0) {
View Full Code Here

Examples of org.python.pydev.core.MisconfigurationException

                    }
                }
            }
        }

        throw new MisconfigurationException(com.aptana.shared_core.string.StringUtils.format("Interpreter: %s not found", nameOrExecutableOrJar));
    }
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.