public class DefaultShardOperationFailedException extends Object implements ShardOperationFailedException
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_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()
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 Throwable getCause()
ShardOperationFailedException
getCause
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
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
Copyright © 2009–2016. All rights reserved.