public class SearchPhaseExecutionException extends ElasticsearchException
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
REST_EXCEPTION_SKIP_STACK_TRACE, REST_EXCEPTION_SKIP_STACK_TRACE_DEFAULT
EMPTY_PARAMS
Constructor and Description |
---|
SearchPhaseExecutionException(StreamInput in) |
SearchPhaseExecutionException(java.lang.String phaseName,
java.lang.String msg,
ShardSearchFailure[] shardFailures) |
SearchPhaseExecutionException(java.lang.String phaseName,
java.lang.String msg,
java.lang.Throwable cause,
ShardSearchFailure[] shardFailures) |
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
getCause() |
java.lang.String |
getPhaseName() |
ElasticsearchException[] |
guessRootCauses()
Returns the root cause of this exception or multiple if different shards caused different exceptions
|
protected void |
metadataToXContent(XContentBuilder builder,
ToXContent.Params params)
Renders additional per exception information into the XContent
|
ShardSearchFailure[] |
shardFailures() |
RestStatus |
status()
Returns the rest status code associated with this exception.
|
java.lang.String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
addHeader, addHeader, addMetadata, addMetadata, failureFromXContent, fromXContent, generateFailureXContent, generateThrowableXContent, getDetailedMessage, getExceptionName, getExceptionName, getHeader, getHeaderKeys, getHeaders, getId, getIndex, getMetadata, getMetadata, getMetadataKeys, getResourceId, getResourceType, getRootCause, getShardId, guessRootCauses, innerToXContent, isRegistered, readException, readStackTrace, setIndex, setIndex, setResources, setShard, unwrapCause, writeStackTraces
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isFragment
public SearchPhaseExecutionException(java.lang.String phaseName, java.lang.String msg, ShardSearchFailure[] shardFailures)
public SearchPhaseExecutionException(java.lang.String phaseName, java.lang.String msg, java.lang.Throwable cause, ShardSearchFailure[] shardFailures)
public SearchPhaseExecutionException(StreamInput in) throws java.io.IOException
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
writeTo
in interface Writeable
writeTo
in class ElasticsearchException
java.io.IOException
public RestStatus status()
ElasticsearchException
status
in class ElasticsearchException
public ShardSearchFailure[] shardFailures()
public java.lang.Throwable getCause()
getCause
in class java.lang.Throwable
protected void metadataToXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
ElasticsearchException
metadataToXContent
in class ElasticsearchException
java.io.IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
toXContent
in class ElasticsearchException
java.io.IOException
public ElasticsearchException[] guessRootCauses()
ElasticsearchException
guessRootCauses
in class ElasticsearchException
public java.lang.String toString()
toString
in class ElasticsearchException
public java.lang.String getPhaseName()