summaryrefslogtreecommitdiffstats
path: root/clustercontroller-utils/src/main/java/com/yahoo/vespa/clustercontroller/utils/staterestapi/errors/InvalidOptionValueException.java
blob: 48700e3f3431d18fbcbf9ae4ba58289dcd9bab3d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.clustercontroller.utils.staterestapi.errors;

public class InvalidOptionValueException extends StateRestApiException {

    public InvalidOptionValueException(String option, String value, String description) {
        super("Option '" + option + "' have invalid value '" + value + "': " + description);
        setHtmlCode(400);
        setHtmlStatus("Option '" + option + "' have invalid value '" + value + "'");
    }
}