blob: 5b097e3b899152f5fc1f246f26328161f02779eb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// 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;
import java.util.List;
public class OperationNotSupportedForUnitException extends StateRestApiException {
private static String createMessage(List<String> path, String description) {
return Arrays.toString(path.toArray()) + ": " + description;
}
public OperationNotSupportedForUnitException(List<String> path, String description) {
super(createMessage(path, description), 405, "Operation not supported for resource");
}
}
|