Package org.elasticsearch.action
Class ShardOperationFailedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.elasticsearch.action.ShardOperationFailedException
- All Implemented Interfaces:
Serializable,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 Exception
implements Writeable, org.elasticsearch.common.xcontent.ToXContentObject
An exception indicating that a failure occurred performing an operation on the shard.
- See Also:
- Serialized Form
-
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
FieldsModifier and TypeFieldDescriptionprotected Throwableprotected Stringprotected Stringprotected intprotected RestStatusFields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedShardOperationFailedException(String index, int shardId, String reason, RestStatus status, Throwable cause) -
Method Summary
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.common.xcontent.ToXContent
toXContentMethods inherited from interface org.elasticsearch.common.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
-