public class SearchPhaseExecutionException extends ElasticsearchException
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
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(String phaseName,
String msg,
ShardSearchFailure[] shardFailures) |
SearchPhaseExecutionException(String phaseName,
String msg,
Throwable cause,
ShardSearchFailure[] shardFailures) |
Modifier and Type | Method and Description |
---|---|
protected void |
causeToXContent(XContentBuilder builder,
ToXContent.Params params)
Renders a cause exception as xcontent
|
Throwable |
getCause() |
String |
getPhaseName() |
ElasticsearchException[] |
guessRootCauses()
Returns the root cause of this exception or mupltiple 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.
|
String |
toString() |
void |
writeTo(StreamOutput out) |
addHeader, addHeader, contains, getDetailedMessage, getExceptionName, getExceptionName, getHeader, getHeaderKeys, getId, getIndex, getResourceId, getResourceType, getRootCause, getShardId, guessRootCauses, isRegistered, readException, readStackTrace, renderHeader, renderThrowable, setIndex, setIndex, setResources, setShard, toXContent, toXContent, unwrapCause, writeStackTraces
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public SearchPhaseExecutionException(String phaseName, String msg, ShardSearchFailure[] shardFailures)
public SearchPhaseExecutionException(String phaseName, String msg, Throwable cause, ShardSearchFailure[] shardFailures)
public SearchPhaseExecutionException(StreamInput in) throws IOException
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in class ElasticsearchException
IOException
public RestStatus status()
ElasticsearchException
status
in class ElasticsearchException
public ShardSearchFailure[] shardFailures()
protected void innerToXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
ElasticsearchException
innerToXContent
in class ElasticsearchException
IOException
protected void causeToXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
ElasticsearchException
causeToXContent
in class ElasticsearchException
IOException
public ElasticsearchException[] guessRootCauses()
ElasticsearchException
guessRootCauses
in class ElasticsearchException
public String toString()
toString
in class ElasticsearchException
public String getPhaseName()
Copyright © 2009–2016. All rights reserved.