summaryrefslogtreecommitdiffstats
path: root/clustercontroller-utils/src/main/java/com/yahoo/vespa/clustercontroller/utils/staterestapi/errors/InvalidOptionValueException.java
blob: f82c6866e82265f6c0e6ba24f01fe9a578720325 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
// Copyright 2017 Yahoo Holdings. 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 + "'");
    }

}