summaryrefslogtreecommitdiffstats
path: root/clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/restapiv2/OtherMasterIndexException.java
blob: 246e0acc61c8cc42b72d39abf0b2979e79de7d02 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
// 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.core.restapiv2;

public class OtherMasterIndexException extends Exception {
    private final int index;

    public OtherMasterIndexException(int index) {
        this.index = index;
    }

    public int getMasterIndex() { return index; }
}