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 java.lang.Object
implements Writeable, ToXContentObject
An exception indicating that a failure occurred performing an operation on the shard.
  • Field Details

    • index

      protected java.lang.String index
    • shardId

      protected int shardId
    • reason

      protected java.lang.String reason
    • status

      protected RestStatus status
    • cause

      protected java.lang.Throwable cause
  • Constructor Details

  • Method Details

    • index

      @Nullable public final java.lang.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 java.lang.String reason()
      The reason of the failure.
    • status

      public final RestStatus status()
      The status of the failure.
    • getCause

      public final java.lang.Throwable getCause()
      The cause of this failure