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.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Modifier and TypeFieldDescriptionstatic org.elasticsearch.common.xcontent.ConstructingObjectParser<DefaultShardOperationFailedException,Void>
Fields inherited from class org.elasticsearch.action.ShardOperationFailedException
cause, index, reason, shardId, status
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ModifierConstructorDescriptionprotected
DefaultShardOperationFailedException(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.XContentBuilder
innerToXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
static void
toString()
org.elasticsearch.common.xcontent.XContentBuilder
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.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.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:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in 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:
toXContent
in 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)
-