-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
- Loading branch information
Anshu Agarwal
committed
Nov 15, 2022
1 parent
6ab7e70
commit 71105fd
Showing
2 changed files
with
101 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...action/admin/cluster/shards/routing/weighted/WeightedRoutingVersionMismatchException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
*/ | ||
|
||
package org.opensearch.action.admin.cluster.shards.routing.weighted; | ||
|
||
import org.opensearch.OpenSearchException; | ||
import org.opensearch.common.io.stream.StreamInput; | ||
import org.opensearch.rest.RestStatus; | ||
|
||
import java.io.IOException; | ||
|
||
public class WeightedRoutingVersionMismatchException extends OpenSearchException { | ||
|
||
public WeightedRoutingVersionMismatchException() { | ||
super(""); | ||
} | ||
|
||
public WeightedRoutingVersionMismatchException(Throwable cause) { | ||
super(cause); | ||
} | ||
|
||
public WeightedRoutingVersionMismatchException(String message) { | ||
super(message); | ||
} | ||
|
||
@Override | ||
public RestStatus status() { | ||
return RestStatus.CONFLICT; | ||
} | ||
|
||
public WeightedRoutingVersionMismatchException(StreamInput in) throws IOException { | ||
super(in); | ||
} | ||
} |