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