Package org.elasticsearch.action.support
Class DefaultShardOperationFailedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.elasticsearch.action.ShardOperationFailedException
org.elasticsearch.action.support.DefaultShardOperationFailedException
- All Implemented Interfaces:
Serializable,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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic org.elasticsearch.common.xcontent.ConstructingObjectParser<DefaultShardOperationFailedException,Void>Fields inherited from class org.elasticsearch.action.ShardOperationFailedException
cause, index, reason, shardId, statusFields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultShardOperationFailedException(String index, int shardId, Throwable cause)protected -
Method Summary
Modifier and TypeMethodDescriptionprotected static <T extends DefaultShardOperationFailedException>
voiddeclareFields(org.elasticsearch.common.xcontent.ConstructingObjectParser<T,Void> objectParser)fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)protected org.elasticsearch.common.xcontent.XContentBuilderinnerToXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)static voidtoString()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)voidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.ShardOperationFailedException
getCause, index, reason, shardId, statusMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTraceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
Field Details
-
PARSER
public static final org.elasticsearch.common.xcontent.ConstructingObjectParser<DefaultShardOperationFailedException,Void> PARSER
-
-
Constructor Details
-
DefaultShardOperationFailedException
protected DefaultShardOperationFailedException() -
DefaultShardOperationFailedException
- Throws:
IOException
-
DefaultShardOperationFailedException
-
DefaultShardOperationFailedException
-
-
Method Details
-
declareFields
protected static <T extends DefaultShardOperationFailedException> void declareFields(org.elasticsearch.common.xcontent.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 org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
IOException
-
innerToXContent
protected org.elasticsearch.common.xcontent.XContentBuilder innerToXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Throws:
IOException
-
fromXContent
public static DefaultShardOperationFailedException fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)
-