Package com.cedarsolutions.exception

Examples of com.cedarsolutions.exception.NotConfiguredException


     * @throws NotConfiguredException If there is a parsing error.
     */
    protected List<String> parseRequiredStringList(String property) throws NotConfiguredException {
        String value = this.properties.getProperty(property);
        if (value == null) {
            throw new NotConfiguredException("Property " + property + " is not set.");
        }

        return splitString(value, ",");
    }
View Full Code Here


     */
    protected List<String> parseRequiredNonEmptyStringList(String property) throws NotConfiguredException {
        List<String> result = parseRequiredStringList(property);

        if (result.isEmpty()) {
            throw new NotConfiguredException("Property " + property + " is empty.");
        }

        return result;
    }
View Full Code Here

     * @throws NotConfiguredException In the event of misconfiguration.
     */
    @Override
    public void afterPropertiesSet() throws NotConfiguredException {
        if (this.xsrfTokenService == null) {
            throw new NotConfiguredException("SecuredServiceExporterFactory is not configured.");
        }
    }
View Full Code Here

     * @throws NotConfiguredException If there is a parsing error.
     */
    protected int parseRequiredInteger(String property) throws NotConfiguredException  {
        String value = this.properties.getProperty(property);
        if (value == null) {
            throw new NotConfiguredException("Property " + property + " is not set.");
        } else {
            try {
                return Integer.parseInt(value);
            } catch (NumberFormatException e) {
                throw new NotConfiguredException("Value for property " + property + " is invalid: " + value);
            }
        }
    }
View Full Code Here

            return defaultValue;
        } else {
            try {
                return Integer.parseInt(value);
            } catch (NumberFormatException e) {
                throw new NotConfiguredException("Value for property " + property + " is invalid: " + value);
            }
        }
    }
View Full Code Here

     * @throws NotConfiguredException If there is a parsing error.
     */
    protected boolean parseRequiredBoolean(String property) throws NotConfiguredException  {
        String value = this.properties.getProperty(property);
        if (value == null) {
            throw new NotConfiguredException("Property " + property + " is not set.");
        } else {
            if ("true".equals(value)) {
                return true;
            } else if ("false".equals(value)) {
                return false;
            } else {
                throw new NotConfiguredException("Value for property " + property + " is invalid: " + value);
            }
        }
    }
View Full Code Here

            if ("true".equals(value)) {
                return true;
            } else if ("false".equals(value)) {
                return false;
            } else {
                throw new NotConfiguredException("Value for property " + property + " is invalid: " + value);
            }
        }
    }
View Full Code Here

     * @throws NotConfiguredException If there is a parsing error.
     */
    protected EmailFormat parseRequiredEmailFormat(String property) throws NotConfiguredException  {
        String value = this.properties.getProperty(property);
        if (value == null) {
            throw new NotConfiguredException("Property " + property + " is not set.");
        } else {
            return parseEmailFormat(value);
        }
    }
View Full Code Here

        if ("PLAINTEXT".equals(value)) {
            return EmailFormat.PLAINTEXT;
        } else if ("MULTIPART".equals(value)) {
            return EmailFormat.MULTIPART;
        } else {
            throw new NotConfiguredException("Email format " + value + " is not valid.");
        }
    }
View Full Code Here

     */
    @Override
    public void afterPropertiesSet() throws NotConfiguredException {
        super.afterPropertiesSet();
        if (this.sessionCookieName == null || this.springContextService == null) {
            throw new NotConfiguredException("GwtCookieXsrfTokenService is not properly configured.");
        }
    }
View Full Code Here

TOP

Related Classes of com.cedarsolutions.exception.NotConfiguredException

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.