public static class BulkItemResponse.Failure extends java.lang.Object implements Writeable, ToXContent
Writeable.Reader<V>, Writeable.Writer<V>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
Failure(StreamInput in)
Read from a stream.
|
Failure(java.lang.String index,
java.lang.String type,
java.lang.String id,
java.lang.Exception cause) |
Modifier and Type | Method and Description |
---|---|
java.lang.Exception |
getCause()
The actual cause of the failure.
|
java.lang.String |
getId()
The id of the action.
|
java.lang.String |
getIndex()
The index name of the action.
|
java.lang.String |
getMessage()
The failure message.
|
RestStatus |
getStatus()
The rest status.
|
java.lang.String |
getType()
The type of the action.
|
java.lang.String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isFragment
public Failure(java.lang.String index, java.lang.String type, java.lang.String id, java.lang.Exception cause)
public Failure(StreamInput in) throws java.io.IOException
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
public java.lang.String getIndex()
public java.lang.String getType()
public java.lang.String getId()
public java.lang.String getMessage()
public RestStatus getStatus()
public java.lang.Exception getCause()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object