Class DefaultShardOperationFailedException
java.lang.Object
org.opensearch.core.action.ShardOperationFailedException
org.opensearch.core.action.support.DefaultShardOperationFailedException
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
public class DefaultShardOperationFailedException
extends ShardOperationFailedException
implements Writeable
Exception for a default shard operation
- Opensearch.internal:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.core.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.WriteableRegistry, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ConstructingObjectParser<DefaultShardOperationFailedException, Void> Fields inherited from class org.opensearch.core.action.ShardOperationFailedException
cause, index, reason, shardId, statusFields inherited from interface org.opensearch.core.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultShardOperationFailedException(String index, int shardId, Throwable cause) protected -
Method Summary
Modifier and TypeMethodDescriptionprotected static <T extends DefaultShardOperationFailedException>
voiddeclareFields(ConstructingObjectParser<T, Void> objectParser) fromXContent(XContentParser parser) protected XContentBuilderinnerToXContent(XContentBuilder builder, ToXContent.Params params) static voidtoString()final XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.opensearch.core.action.ShardOperationFailedException
getCause, index, reason, shardId, statusMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opensearch.core.xcontent.ToXContentObject
isFragment
-
Field Details
-
PARSER
-
-
Constructor Details
-
DefaultShardOperationFailedException
protected DefaultShardOperationFailedException() -
DefaultShardOperationFailedException
- Throws:
IOException
-
DefaultShardOperationFailedException
-
DefaultShardOperationFailedException
-
-
Method Details
-
declareFields
protected static <T extends DefaultShardOperationFailedException> void declareFields(ConstructingObjectParser<T, Void> objectParser) -
readShardOperationFailed
public static DefaultShardOperationFailedException readShardOperationFailed(StreamInput in) throws IOException - Throws:
IOException
-
readFrom
public static void readFrom(StreamInput in, DefaultShardOperationFailedException f) throws IOException - Throws:
IOException
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toString
-
toXContent
public final XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
innerToXContent
protected XContentBuilder innerToXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Throws:
IOException
-
fromXContent
-