Package ch.fork.AdHocRailway.technical.configuration

Examples of ch.fork.AdHocRailway.technical.configuration.ConfigurationException


        routePersistence.clear();
        turnoutPersistence.clear();
        locomotivePersistence.clear();
        parseDocument(filename);
        if (!supported) {
            throw new ConfigurationException(
                    Constants.ERR_VERSION_NOT_SUPPORTED);
        }
    }
View Full Code Here


            SAXParser sp = spf.newSAXParser();
            // parse the file and also register this class for call backs
            logger.info("Opening configuration file: " + filename);
            sp.parse(filename, this);
        } catch (SAXException se) {
            throw new ConfigurationException("Error loading configuration", se);
        } catch (ParserConfigurationException pce) {
            throw new ConfigurationException("Error configuring SAX-Parser",
                    pce);
        } catch (IOException ie) {
            throw new ConfigurationException(
                    "Error opening configuration file", ie);
        }
    }
View Full Code Here

        } else if (version == 0.4) {
            export = new XMLExporter_0_4(turnoutPersistence,
                    locomotivePersistence, routePersistence).export();
            logger.info("AdHoc-Railway Config Version 0.4 exported");
        } else {
            throw new ConfigurationException(
                    Constants.ERR_VERSION_NOT_SUPPORTED);
        }
        return export;
    }
View Full Code Here

TOP

Related Classes of ch.fork.AdHocRailway.technical.configuration.ConfigurationException

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.