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
  • Field Details

    • index

      protected String index
    • shardId

      protected int shardId
    • reason

      protected String reason
    • status

      protected RestStatus status
    • cause

      protected Throwable cause
  • Constructor Details

    • ShardOperationFailedException

      protected ShardOperationFailedException()
    • ShardOperationFailedException

      protected ShardOperationFailedException(@Nullable String index, int shardId, String reason, RestStatus status, Throwable cause)
  • Method Details

    • index

      @Nullable public final String index()
      The index the operation failed on. Might return null 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

      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
      Overrides:
      getCause in class Throwable