Package org.apache.xindice.util

Examples of org.apache.xindice.util.XindiceException


               XMLDBException, XindiceException {

        ensureInitialized();
        Collection collection = DatabaseManager.getCollection(collectionUri);
        if (collection == null) {
            throw new XindiceException("DatabaseManager.getCollection(" + collectionUri + ") returned null.");
        }

        return collection;
    }
View Full Code Here


            if (!execute()) {
                printHelp();
            }
        } catch (IllegalArgumentException e) {
            printHelp();
            throw new XindiceException("ERROR : " + e.getMessage(), e);
        } catch (NoSuchElementException e) {
            throw new NoSuchElementException("ERROR : " + e + " Switch found. Parameter missing.");
        } catch (NullPointerException e) {
            e.printStackTrace(System.err);
            throw new NullPointerException("ERROR : " + e);
        } catch (Exception e) {
            e.printStackTrace(System.err);
            throw new XindiceException("ERROR : " + e.getMessage(), e);
        }
    }
View Full Code Here

     */
    public synchronized void configure() throws IOException, XindiceException {
        db = Database.getDatabase(loadConfiguration());
        if (null == db) {
            log.fatal("Unable to configure database");
            throw new XindiceException("Unable to configure database");
        }
        if (log.isInfoEnabled()) {
            log.info("Database name: '" + db.getName() + "'");
        }
    }
View Full Code Here

            }
            try {
                // In case home has been specified as relative path convert it to absolute path
                dbrootDir = new File(home, dbroot).getCanonicalFile();
            } catch (IOException e) {
                throw new XindiceException("Can't get canonical path", e);
            }
        }

        setCollectionRoot(dbrootDir);
        if (log.isInfoEnabled()) {
View Full Code Here

    public DOMParser() throws XindiceException {
        try {
            sp = getSAXParser();
        } catch (Exception e) {
            log.warn("Failed to create SAXParser", e);
            throw new XindiceException("Error creating parser", e);
        }
    }
View Full Code Here

        try {
            DOMParser dp = new DOMParser();
            dp.parse(input);
            return dp.getDocument();
        } catch (Exception e) {
            throw new XindiceException("Error parsing Document", e);
        }
    }
View Full Code Here

        try {
            DOMParser dp = new DOMParser();
            dp.parse(xml);
            return dp.getDocument();
        } catch (Exception e) {
            throw new XindiceException("Error parsing Document", e);
        }
    }
View Full Code Here

        try {
            DOMParser dp = new DOMParser();
            dp.parse(value);
            return dp.getDocument();
        } catch (Exception e) {
            throw new XindiceException("Error parsing Document", e);
        }
    }
View Full Code Here

        try {
            DOMParser dp = new DOMParser();
            dp.parse(source);
            return dp.getDocument();
        } catch (Exception e) {
            throw new XindiceException("Error parsing Document", e);
        }
    }
View Full Code Here

        try {
            DOMParser dp = new DOMParser();
            dp.parse(input);
            return dp.getDocument();
        } catch (Exception e) {
            throw new XindiceException("Error parsing Document", e);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.xindice.util.XindiceException

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.