Module org.elasticsearch.server
Package org.elasticsearch.action
Class ShardOperationFailedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.elasticsearch.action.ShardOperationFailedException
- All Implemented Interfaces:
Serializable,Writeable,ToXContent,ToXContentObject
- Direct Known Subclasses:
DefaultShardOperationFailedException,ReplicationResponse.ShardInfo.Failure,ShardSearchFailure,SnapshotShardFailure
public abstract class ShardOperationFailedException
extends Exception
implements Writeable, ToXContentObject
An exception indicating that a failure occurred performing an operation on the shard.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Throwableprotected Stringprotected Stringprotected intprotected RestStatusFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedShardOperationFailedException(String index, int shardId, String reason, RestStatus status, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionfinal ThrowablegetCause()The cause of this failurefinal Stringindex()The index the operation failed on.final Stringreason()The reason of the failure.final intshardId()The index the operation failed on.final RestStatusstatus()The status of the failure.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContent
toXContentMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
index
-
shardId
protected int shardId -
reason
-
status
-
cause
-
-
Constructor Details
-
ShardOperationFailedException
protected ShardOperationFailedException() -
ShardOperationFailedException
protected ShardOperationFailedException(@Nullable String index, int shardId, String reason, RestStatus status, Throwable cause)
-
-
Method Details
-
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
The reason of the failure. -
status
The status of the failure. -
getCause
The cause of this failure
-