blob: 342f568eacc18ee6fa1a43397b3922a8ada88b9b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.clustercontroller.utils.staterestapi.errors;
import java.util.Arrays;
public class OperationNotSupportedForUnitException extends StateRestApiException {
private static String createMessage(String[] path, String description) {
return new StringBuilder()
.append(Arrays.toString(path)).append(": ").append(description)
.toString();
}
public OperationNotSupportedForUnitException(String path[], String description) {
super(createMessage(path, description));
setHtmlCode(405);
setHtmlStatus("Operation not supported for resource");
}
}
|