Examples of PluginConfigurationException


Examples of org.jtalks.jcommune.plugin.api.exceptions.PluginConfigurationException

            order = properties.get(0).getValue() == null ? DEFAULT_ORDER_VALUE
                    : Integer.parseInt(properties.get(0).getValue());
            properties.get(0).setHint(ORDER_HINT);
            return new HashMap<>();
        } else {
            throw new PluginConfigurationException(
                    "Can't apply configuration: incorrect parameters count or order not found");
        }
    }
View Full Code Here

Examples of org.jtalks.jcommune.plugin.api.exceptions.PluginConfigurationException

                LOGGER.error(property.getValue() + " is not valid value for property " + property.getName(), ex);
            }
        }
        if (width < 1 || height < 1 || length < 1 || possibleSymbols.length() < 1) {
            // this should be returned as a map, but this mechanism should be implemented in the plugin API first
            throw new PluginConfigurationException(
                    "Can't apply configuration: Width, height, length and possible symbols properties should not be empty.");
        }
        service = new KaptchaPluginService(width, height, length, possibleSymbols);
        pluginProperties = properties;
        return new HashMap<>();
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.