public class DefaultShardOperationFailedException extends Object implements ShardOperationFailedException
Constructor and Description |
---|
DefaultShardOperationFailedException(IndexShardException e) |
DefaultShardOperationFailedException(String index,
int shardId,
Throwable t) |
Modifier and Type | Method and Description |
---|---|
String |
index()
The index the operation failed on.
|
void |
readFrom(StreamInput in) |
static DefaultShardOperationFailedException |
readShardOperationFailed(StreamInput in) |
String |
reason()
The reason of the failure.
|
int |
shardId()
The index the operation failed on.
|
RestStatus |
status()
The status of the failure.
|
String |
toString() |
void |
writeTo(StreamOutput out) |
public DefaultShardOperationFailedException(IndexShardException e)
public String index()
ShardOperationFailedException
index
in interface ShardOperationFailedException
public int shardId()
ShardOperationFailedException
shardId
in interface ShardOperationFailedException
public String reason()
ShardOperationFailedException
reason
in interface ShardOperationFailedException
public RestStatus status()
ShardOperationFailedException
status
in interface ShardOperationFailedException
public static DefaultShardOperationFailedException readShardOperationFailed(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
Copyright © 2009–2015. All rights reserved.