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()
ShardOperationFailedExceptionindex in interface ShardOperationFailedExceptionpublic int shardId()
ShardOperationFailedExceptionshardId in interface ShardOperationFailedExceptionpublic String reason()
ShardOperationFailedExceptionreason in interface ShardOperationFailedExceptionpublic RestStatus status()
ShardOperationFailedExceptionstatus in interface ShardOperationFailedExceptionpublic static DefaultShardOperationFailedException readShardOperationFailed(StreamInput in) throws IOException
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionCopyright © 2009–2016. All rights reserved.