public class DefaultShardOperationFailedException extends java.lang.Object implements ShardOperationFailedException
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Modifier | Constructor and Description |
---|---|
protected |
DefaultShardOperationFailedException() |
|
DefaultShardOperationFailedException(ElasticsearchException e) |
|
DefaultShardOperationFailedException(java.lang.String index,
int shardId,
java.lang.Throwable reason) |
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
getCause()
The cause of this failure
|
java.lang.String |
index()
The index the operation failed on.
|
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
static DefaultShardOperationFailedException |
readShardOperationFailed(StreamInput in) |
java.lang.String |
reason()
The reason of the failure.
|
int |
shardId()
The index the operation failed on.
|
RestStatus |
status()
The status of the failure.
|
java.lang.String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isFragment
protected DefaultShardOperationFailedException()
public DefaultShardOperationFailedException(ElasticsearchException e)
public DefaultShardOperationFailedException(java.lang.String index, int shardId, java.lang.Throwable reason)
public java.lang.String index()
ShardOperationFailedException
index
in interface ShardOperationFailedException
public int shardId()
ShardOperationFailedException
shardId
in interface ShardOperationFailedException
public java.lang.String reason()
ShardOperationFailedException
reason
in interface ShardOperationFailedException
public RestStatus status()
ShardOperationFailedException
status
in interface ShardOperationFailedException
public java.lang.Throwable getCause()
ShardOperationFailedException
getCause
in interface ShardOperationFailedException
public static DefaultShardOperationFailedException readShardOperationFailed(StreamInput in) throws java.io.IOException
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException