public class SearchPhaseExecutionException extends ElasticsearchException
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>REST_EXCEPTION_SKIP_STACK_TRACE, REST_EXCEPTION_SKIP_STACK_TRACE_DEFAULTEMPTY_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, writeStackTracesaddSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTraceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisFragmentpublic 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.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
WriteablewriteTo in interface WriteablewriteTo in class ElasticsearchExceptionjava.io.IOExceptionpublic RestStatus status()
ElasticsearchExceptionstatus in class ElasticsearchExceptionpublic ShardSearchFailure[] shardFailures()
public java.lang.Throwable getCause()
getCause in class java.lang.Throwableprotected void metadataToXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
ElasticsearchExceptionmetadataToXContent in class ElasticsearchExceptionjava.io.IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContenttoXContent in class ElasticsearchExceptionjava.io.IOExceptionpublic ElasticsearchException[] guessRootCauses()
ElasticsearchExceptionguessRootCauses in class ElasticsearchExceptionpublic java.lang.String toString()
toString in class ElasticsearchExceptionpublic java.lang.String getPhaseName()