Class DefaultShardOperationFailedException

java.lang.Object
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
  • Field Details

  • Constructor Details

    • DefaultShardOperationFailedException

      protected DefaultShardOperationFailedException()
    • DefaultShardOperationFailedException

      protected DefaultShardOperationFailedException​(StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
    • DefaultShardOperationFailedException

      public DefaultShardOperationFailedException​(ElasticsearchException e)
    • DefaultShardOperationFailedException

      public DefaultShardOperationFailedException​(java.lang.String index, int shardId, java.lang.Throwable cause)
  • Method Details

    • declareFields

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

      public static DefaultShardOperationFailedException readShardOperationFailed​(StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
    • readFrom

      public static void readFrom​(StreamInput in, DefaultShardOperationFailedException f) throws java.io.IOException
      Throws:
      java.io.IOException
    • writeTo

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

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • toXContent

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

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

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