Package org.elasticsearch.action
Class ShardOperationFailedException
- java.lang.Object
-
- org.elasticsearch.action.ShardOperationFailedException
-
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
- Direct Known Subclasses:
DefaultShardOperationFailedException,ReplicationResponse.ShardInfo.Failure,ShardSearchFailure,SnapshotShardFailure
public abstract class ShardOperationFailedException extends Object implements Writeable, 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
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Field Summary
Fields Modifier and Type Field Description protected Throwablecauseprotected Stringindexprotected Stringreasonprotected intshardIdprotected RestStatusstatus-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedShardOperationFailedException()protectedShardOperationFailedException(String index, int shardId, String reason, RestStatus status, Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThrowablegetCause()The cause of this failureStringindex()The index the operation failed on.Stringreason()The reason of the failure.intshardId()The index the operation failed on.RestStatusstatus()The status of the failure.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContent
toXContent
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
-
-
-
Field Detail
-
index
protected String index
-
shardId
protected int shardId
-
reason
protected String reason
-
status
protected RestStatus status
-
cause
protected Throwable cause
-
-
Constructor Detail
-
ShardOperationFailedException
protected ShardOperationFailedException()
-
ShardOperationFailedException
protected ShardOperationFailedException(@Nullable String index, int shardId, String reason, RestStatus status, Throwable cause)
-
-
Method Detail
-
index
@Nullable public final 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 String reason()
The reason of the failure.
-
status
public final RestStatus status()
The status of the failure.
-
getCause
public final Throwable getCause()
The cause of this failure
-
-