aboutsummaryrefslogtreecommitdiffstats
path: root/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/template/NameAlreadyExistsTemplateException.java
blob: d9e7cdb4ccdf2d6e21478b37c1b1b338274f5a67 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.node.admin.task.util.template;

/**
 * @author hakonhall
 */
public class NameAlreadyExistsTemplateException extends TemplateException {
    public NameAlreadyExistsTemplateException(String name, Section first, Section second) {
        super("The name '" + name + "' of the " + second.type() + " section at " +
              second.range().start().calculateLocation().lineAndColumnText() +
              " is in conflict with the identically named " + first.type() + " section at " +
              first.range().start().calculateLocation().lineAndColumnText());
    }
}