Package fr.soleil.salsa.exception

Examples of fr.soleil.salsa.exception.SalsaMissingPropertyException


            LOGGER.error("Device Preference file not found {}", fnfe.getMessage());
            LOGGER.info("Device preference file will be created (if allowed)");
            LOGGER.debug("Stack trace", fnfe);
            if ((devicePreferences.getScanServer() == null) || (devicePreferences.getScanServer().trim().isEmpty())) {
                LOGGER.error("Missing SCANSERVER_PROPERTY property");
                throw new SalsaMissingPropertyException(SCANSERVER_PROPERTY);
            } else {
                save(devicePreferences);
            }
        } catch (Exception e) {
            LOGGER.error("Unable to load device preference file {}", e.getMessage());
View Full Code Here


     * @param menuBarViewTool
     */
    public void init() throws SalsaPreferencesException {
        String preferenceDirectory = SystemUtils.getSystemProperty(DIRECTORY_PROPERTY);
        if ((preferenceDirectory == null) || (preferenceDirectory.trim().isEmpty())) {
            throw new SalsaMissingPropertyException(DIRECTORY_PROPERTY);
        } else {
            // add menu items for default perspectives
            for (String defaultPerspective : PERSPECTIVES) {
                updateJMenu(defaultPerspective);
            }
View Full Code Here

        }

        salsaResult.setBatch(salsaExecute);

        if ((tangoHost == null) || tangoHost.trim().isEmpty()) {
            printCorrectUsageAndExit(new SalsaMissingPropertyException("TANGO_HOST"));
        } else if ((serverUrl == null) || serverUrl.trim().isEmpty()) {
            printCorrectUsageAndExit(new SalsaMissingPropertyException("SALSA_SERVER_URL"));
        } else if ((login == null) || login.trim().isEmpty()) {
            printCorrectUsageAndExit(new SalsaMissingPropertyException("SALSA_LOGIN"));
        } else {
            // Launch SalsaTrajectoryBean with specified config
            if (roMode) {
                splash.setMessage("Build Salsa read only panel");
                splash.progress(40);
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.exception.SalsaMissingPropertyException

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.