public class DefaultShardOperationFailedException extends Object implements ShardOperationFailedException
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Modifier | Constructor and Description |
|---|---|
protected |
DefaultShardOperationFailedException() |
|
DefaultShardOperationFailedException(ElasticsearchException e) |
|
DefaultShardOperationFailedException(String index,
int shardId,
Throwable t) |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getCause()
The cause of this failure.
|
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 shard the operation failed on.
|
RestStatus |
status()
The status of the failure.
|
String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
protected DefaultShardOperationFailedException()
public DefaultShardOperationFailedException(ElasticsearchException 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 Throwable getCause()
ShardOperationFailedExceptiongetCause 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 StreamableIOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionCopyright © 2009–2017. All rights reserved.