Package org.tubo.exception

Examples of org.tubo.exception.TuboConfigurationException


        //
        // run parsing
        try {
            config = (Configuration) digester.parse(reader);
        } catch (IOException e) {
            TuboConfigurationException tce = new TuboConfigurationException("IO Error tring to parse configuration.",e);
            throw tce;
        } catch (SAXException e) {
            TuboConfigurationException tce = new TuboConfigurationException("XML Error while parse configuration.",e);
            throw tce;
        }
        //
        // return configuration
        return config;
View Full Code Here


        URL url = getReaderClassLoader().getResource(resource);
        //
        // check resource loading
        if (url == null) {
            log.fatal(".read() - Resource "+resource+" can't be found. Check your classpath.");
            throw new TuboConfigurationException("Resource "+resource+" can't be found.");
        }
        //
        // append url resource to configuration
        config = append(url, config);
        //
View Full Code Here

            //
            // create a reader for url
            reader = new InputStreamReader(url.openStream());
        } catch (IOException ex) {
            log.fatal(".read() - Error trying to open configuration from "+url,ex);
            throw new TuboConfigurationException("Error trying to open configuration from "+url);
        }
        //
        // reading master configuration
        config = append(reader,config);
        //
View Full Code Here

    public ReferenceableItemDef getReferenceableItemDef(String id) {
        return (ReferenceableItemDef)referenceableItemDefs.get(id);
    }
    protected void add(ReferenceableItemDef itemDef) throws TuboConfigurationException {
        if (existId(itemDef.getId()))
            throw new TuboConfigurationException("ID duplicated in configuration ["+itemDef.getId()+"]");
        referenceableItemDefs.put(itemDef.getId(),itemDef);
    }
View Full Code Here

TOP

Related Classes of org.tubo.exception.TuboConfigurationException

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.