Package org.elasticsearch.action
Interface ShardOperationFailedException
-
- All Superinterfaces:
Streamable
,ToXContent
- All Known Implementing Classes:
DefaultShardOperationFailedException
,IndicesShardStoresResponse.Failure
,ReplicationResponse.ShardInfo.Failure
,ShardSearchFailure
,SnapshotShardFailure
public interface ShardOperationFailedException extends Streamable, ToXContent
An exception indicating that a failure occurred performing an operation on the shard.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
-
Field Summary
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Throwable
getCause()
The cause of this failurejava.lang.String
index()
The index the operation failed on.java.lang.String
reason()
The reason of the failure.int
shardId()
The index the operation failed on.RestStatus
status()
The status of the failure.-
Methods inherited from interface org.elasticsearch.common.io.stream.Streamable
readFrom, writeTo
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContent
isFragment, toXContent
-
-
-
-
Method Detail
-
index
java.lang.String index()
The index the operation failed on. Might returnnull
if it can't be derived.
-
shardId
int shardId()
The index the operation failed on. Might return-1
if it can't be derived.
-
reason
java.lang.String reason()
The reason of the failure.
-
status
RestStatus status()
The status of the failure.
-
getCause
java.lang.Throwable getCause()
The cause of this failure
-
-