public class SearchPhaseExecutionException extends ElasticsearchException
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsREST_EXCEPTION_SKIP_CAUSE, REST_EXCEPTION_SKIP_CAUSE_DEFAULT, REST_EXCEPTION_SKIP_STACK_TRACE, REST_EXCEPTION_SKIP_STACK_TRACE_DEFAULTEMPTY_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, writeStackTracesaddSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic SearchPhaseExecutionException(String phaseName, String msg, ShardSearchFailure[] shardFailures)
public SearchPhaseExecutionException(String phaseName, String msg, Throwable cause, ShardSearchFailure[] shardFailures)
public SearchPhaseExecutionException(StreamInput in) throws IOException
IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in class ElasticsearchExceptionIOExceptionpublic RestStatus status()
ElasticsearchExceptionstatus in class ElasticsearchExceptionpublic ShardSearchFailure[] shardFailures()
protected void innerToXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
ElasticsearchExceptioninnerToXContent in class ElasticsearchExceptionIOExceptionprotected void causeToXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
ElasticsearchExceptioncauseToXContent in class ElasticsearchExceptionIOExceptionpublic ElasticsearchException[] guessRootCauses()
ElasticsearchExceptionguessRootCauses in class ElasticsearchExceptionpublic String toString()
toString in class ElasticsearchExceptionpublic String getPhaseName()
Copyright © 2009–2017. All rights reserved.