Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.yammer.dropwizard.config;

An exception thrown where there is an error parsing a configuration object.
 public class ConfigurationException extends Exception {
     private static final long serialVersionUID = 5325162099634227047L;

Creates a new ConfigurationException for the given file with the given errors.

file the bad configuration file
errors the errors in the file
    public ConfigurationException(File fileIterable<Stringerrors) {
    private static String formatMessage(File fileIterable<Stringerrors) {
        final StringBuilder msg = new StringBuilder(file.toString())
                .append(" has the following errors:\n");
        for (String error : errors) {
            msg.append("  * ").append(error).append('\n');
        return msg.toString();
New to GrepCode? Check out our FAQ X