Examples of TaskConfigurationException


Examples of org.sf.bee.taskmanager.exceptions.TaskConfigurationException

    public final void load(final File file)
            throws TaskConfigurationException {
        // create the configuration manager
        if (!file.exists()) {
            throw new TaskConfigurationException(
                    "File not found: " + file.getAbsolutePath());
        }
        final TaskConfigurationManager configuration = new TaskConfigurationManager(file);
        this.load(configuration.getServices());
    }
View Full Code Here

Examples of org.sf.bee.taskmanager.exceptions.TaskConfigurationException

    public TaskConfigurationManager(final File file) throws TaskConfigurationException {
        _services = new LinkedList<TaskConfigurationItem>();
        if (!file.exists()) {
            this.getLogger().severe("Configuration file not found: " + file.getAbsolutePath());
            throw new TaskConfigurationException(
                    "Configuration file not found: " +
                    file.getAbsolutePath());
        }

        this.initialize(file);
View Full Code Here

Examples of org.sf.bee.taskmanager.exceptions.TaskConfigurationException

        XmlDocument document = null;
        try {
            document = new XmlDocument(file);
        } catch (Exception ex) {
            this.getLogger().severe("Error parsing document: " + ex.getMessage());
            throw new TaskConfigurationException("Error parsing document: " + ex.getMessage());
        }
        if (null == document) {
            this.getLogger().severe("Invalid document: " + file.getAbsoluteFile());
            throw new TaskConfigurationException("Invalid document: " + file.getAbsoluteFile());
        }
        XmlNode documentRoot = document.getDocumentElement();
        if (null == documentRoot) {
            this.getLogger().severe("Invalid document root: " + file.getAbsoluteFile());
            throw new TaskConfigurationException("Invalid document root: " + file.getAbsoluteFile());
        }

        try {
            this.init(documentRoot);
        } catch (Exception ex) {
            this.getLogger().severe("Error initializing configuration: " + ex.getMessage());
            throw new TaskConfigurationException("Error initializing configuration: " + ex.getMessage());
        }
    }
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.