public class SearchPhaseExecutionException extends ElasticsearchException
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
REST_EXCEPTION_SKIP_CAUSE, REST_EXCEPTION_SKIP_CAUSE_DEFAULT, 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 |
---|---|
protected void |
causeToXContent(XContentBuilder builder,
ToXContent.Params params)
Renders a cause exception as xcontent
|
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 |
innerToXContent(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() |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
addHeader, addHeader, fromXContent, getDetailedMessage, getExceptionName, getExceptionName, getHeader, getHeaderKeys, getId, getIndex, getResourceId, getResourceType, getRootCause, getShardId, guessRootCauses, isRegistered, readException, readStackTrace, renderException, renderHeader, setIndex, setIndex, setResources, setShard, setShard, toXContent, toXContent, unwrapCause, writeStackTraces
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 innerToXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
ElasticsearchException
innerToXContent
in class ElasticsearchException
java.io.IOException
protected void causeToXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
ElasticsearchException
causeToXContent
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()