Class DefaultShardOperationFailedException

org.elasticsearch.action.ShardOperationFailedException
org.elasticsearch.action.support.DefaultShardOperationFailedException
All Implemented Interfaces:
, Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject
Direct Known Subclasses:
AddIndexBlockResponse.AddBlockShardResult.Failure, CloseIndexResponse.ShardResult.Failure, IndicesShardStoresResponse.Failure

public class DefaultShardOperationFailedException extends ShardOperationFailedException implements Writeable
See Also:
Serialized Form
  • Field Details

    • PARSER

      public static final org.elasticsearch.common.xcontent.ConstructingObjectParser<> PARSER
  • Constructor Details

    • DefaultShardOperationFailedException

      protected DefaultShardOperationFailedException()
    • DefaultShardOperationFailedException

      protected DefaultShardOperationFailedException(StreamInput in) throws
      Throws:
    • DefaultShardOperationFailedException

      public DefaultShardOperationFailedException(ElasticsearchException e)
    • DefaultShardOperationFailedException

      public DefaultShardOperationFailedException( index, int shardId,  cause)
  • Method Details

    • declareFields

      protected static <T extends DefaultShardOperationFailedException> void declareFields(org.elasticsearch.common.xcontent.ConstructingObjectParser<T,​> objectParser)
    • readShardOperationFailed

      public static DefaultShardOperationFailedException readShardOperationFailed(StreamInput in) throws
      Throws:
    • readFrom

      public static void readFrom(StreamInput in, DefaultShardOperationFailedException f) throws
      Throws:
    • writeTo

      public void writeTo(StreamOutput out) throws
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
    • toString

      public  toString()
      Overrides:
       in class 
    • toXContent

      public final org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws
      Specified by:
      toXContent in interface org.elasticsearch.common.xcontent.ToXContent
      Throws:
    • innerToXContent

      protected org.elasticsearch.common.xcontent.XContentBuilder innerToXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws
      Throws:
    • fromXContent

      public static DefaultShardOperationFailedException fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)