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.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Modifier and TypeFieldDescriptionprotected Throwable
protected String
protected String
protected int
protected RestStatus
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ModifierConstructorDescriptionprotected
protected
ShardOperationFailedException(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, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContent
toXContent
Methods 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 returnnull
if it can't be derived. -
shardId
public final int shardId()The index the operation failed on. Might return-1
if it can't be derived. -
reason
The reason of the failure. -
status
The status of the failure. -
getCause
The cause of this failure
-