Package fr.soleil.salsa.exception

Examples of fr.soleil.salsa.exception.ConfigurationException


        try {
            locatorFileName = configFile.getString(LOCATOR_CONFIG_FILE_KEY);
        }
        catch(MissingResourceException e) {
            e.printStackTrace();
            throw new ConfigurationException(
                    "Erreur : le fichier de configuration du locator (cl� " + CONFIG_FILE_NAME
                    + ") n'est pas renseign� dans " + CONFIG_FILE_NAME + ".properties.");
        }
       
        return getLocator(locatorFileName);
View Full Code Here


                log.debug("Initialisation du locator " + locator.getClass().getCanonicalName() + " dans ApplicationConfig.");
            }
        }
        catch(LocatorException e) {
            e.printStackTrace();
            throw new ConfigurationException("Erreur lors de l'instanciation du locator : " + e.getMessage(), e);
        }
        return locator;       
       
    }
View Full Code Here

            try {
                configFile = ResourceBundle.getBundle(CONFIG_FILE_NAME);
            }
            catch(MissingResourceException e) {
                e.printStackTrace();
                throw new ConfigurationException(
                        "Erreur : impossible de trouver le fichier de configuration " + CONFIG_FILE_NAME + ".properties.");
            }
            if (log.isDebugEnabled()) {
                log.debug("Chargement du fichier de configuration " + CONFIG_FILE_NAME + ".properties.");
            }
View Full Code Here

        catch(MissingResourceException e) {
            String errorMessage = "Cannot read key " + LOCATOR_CONFIG_FILE_KEY + " in " + CONFIG_FILE_NAME
            + ".properties file " + e.getMessage();
            LOGGER.error(errorMessage);
            LOGGER.debug("Stack trace", e);
            throw new ConfigurationException(errorMessage);
        }

        return getLocator(locatorFileName);
    }
View Full Code Here

        }
        catch(LocatorException e) {
            String errorMessage = "Cannot create service locator see " + locatorFileName + " " + e.getMessage();
            LOGGER.error(errorMessage);
            LOGGER.debug("Stack trace", e);
            throw new ConfigurationException(errorMessage, e);
        }
        return locator;

    }
View Full Code Here

            catch(MissingResourceException e) {
                String errorMessage = "Cannot find configuration file " + CONFIG_FILE_NAME + ".properties "
                + e.getMessage();
                LOGGER.error(errorMessage);
                LOGGER.debug("Stack trace", e);
                throw new ConfigurationException(errorMessage, e);
            }
        }
    }
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.exception.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.