Module org.elasticsearch.server
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
,ToXContent
,ToXContentObject
- Direct Known Subclasses:
AddIndexBlockResponse.AddBlockShardResult.Failure
,CloseIndexResponse.ShardResult.Failure
,IndicesShardStoresResponse.Failure
public class DefaultShardOperationFailedException
extends ShardOperationFailedException
implements Writeable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ConstructingObjectParser<DefaultShardOperationFailedException,
Void> Fields inherited from class org.elasticsearch.action.ShardOperationFailedException
cause, index, reason, shardId, status
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
DefaultShardOperationFailedException
(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 XContentBuilder
innerToXContent
(XContentBuilder builder, ToXContent.Params params) static void
toString()
final XContentBuilder
toXContent
(XContentBuilder builder, ToXContent.Params params) void
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.ShardOperationFailedException
getCause, index, reason, shardId, status
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.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:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
toString
-
toXContent
public final XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceToXContent
- Throws:
IOException
-
innerToXContent
protected XContentBuilder innerToXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Throws:
IOException
-
fromXContent
-