Package org.elasticsearch.action
Class ShardOperationFailedException
java.lang.Object
org.elasticsearch.action.ShardOperationFailedException
- All Implemented Interfaces:
Writeable,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject
- Direct Known Subclasses:
DefaultShardOperationFailedException,ReplicationResponse.ShardInfo.Failure,ShardSearchFailure,SnapshotShardFailure
public abstract class ShardOperationFailedException extends java.lang.Object implements Writeable, org.elasticsearch.common.xcontent.ToXContentObject
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
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protectedShardOperationFailedException()protectedShardOperationFailedException(java.lang.String index, int shardId, java.lang.String reason, RestStatus status, java.lang.Throwable cause) -
Method Summary
Modifier and Type Method Description java.lang.ThrowablegetCause()The cause of this failurejava.lang.Stringindex()The index the operation failed on.java.lang.Stringreason()The reason of the failure.intshardId()The index the operation failed on.RestStatusstatus()The status of the failure.
-
Field Details
-
Constructor Details
-
ShardOperationFailedException
protected ShardOperationFailedException() -
ShardOperationFailedException
protected ShardOperationFailedException(@Nullable java.lang.String index, int shardId, java.lang.String reason, RestStatus status, java.lang.Throwable cause)
-
-
Method Details
-
index
@Nullable public final java.lang.String index()The index the operation failed on. Might returnnullif it can't be derived. -
shardId
public final int shardId()The index the operation failed on. Might return-1if it can't be derived. -
reason
public final java.lang.String reason()The reason of the failure. -
status
The status of the failure. -
getCause
public final java.lang.Throwable getCause()The cause of this failure
-