Package org.elasticsearch.action.search
Class SearchPhaseExecutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.elasticsearch.ElasticsearchException
org.elasticsearch.action.search.SearchPhaseExecutionException
- All Implemented Interfaces:
java.io.Serializable
,Writeable
,ToXContent
,ToXContentFragment
- Direct Known Subclasses:
ReduceSearchPhaseException
public class SearchPhaseExecutionException extends ElasticsearchException
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields inherited from class org.elasticsearch.ElasticsearchException
REST_EXCEPTION_SKIP_STACK_TRACE, REST_EXCEPTION_SKIP_STACK_TRACE_DEFAULT
-
Constructor Summary
Constructors Constructor Description SearchPhaseExecutionException(java.lang.String phaseName, java.lang.String msg, java.lang.Throwable cause, ShardSearchFailure[] shardFailures)
SearchPhaseExecutionException(java.lang.String phaseName, java.lang.String msg, ShardSearchFailure[] shardFailures)
SearchPhaseExecutionException(StreamInput in)
-
Method Summary
Modifier and Type Method 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 exceptionsprotected void
metadataToXContent(XContentBuilder builder, ToXContent.Params params)
Renders additional per exception information into the XContentShardSearchFailure[]
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.Methods inherited from class org.elasticsearch.ElasticsearchException
addHeader, addHeader, addMetadata, addMetadata, failureFromXContent, fromXContent, generateFailureXContent, generateThrowableXContent, getDetailedMessage, getExceptionName, getExceptionName, getHeader, getHeaderKeys, getHeaders, getId, getIndex, getMetadata, getMetadata, getMetadataKeys, getResourceId, getResourceType, getRootCause, getShardId, guessRootCauses, innerFromXContent, innerToXContent, isRegistered, readException, readStackTrace, setIndex, setIndex, setResources, setShard, unwrapCause, writeStackTraces
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
SearchPhaseExecutionException
public SearchPhaseExecutionException(java.lang.String phaseName, java.lang.String msg, ShardSearchFailure[] shardFailures) -
SearchPhaseExecutionException
public SearchPhaseExecutionException(java.lang.String phaseName, java.lang.String msg, java.lang.Throwable cause, ShardSearchFailure[] shardFailures) -
SearchPhaseExecutionException
- Throws:
java.io.IOException
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in classElasticsearchException
- Throws:
java.io.IOException
-
status
Description copied from class:ElasticsearchException
Returns the rest status code associated with this exception.- Overrides:
status
in classElasticsearchException
-
shardFailures
-
getCause
public java.lang.Throwable getCause()- Overrides:
getCause
in classjava.lang.Throwable
-
metadataToXContent
protected void metadataToXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOExceptionDescription copied from class:ElasticsearchException
Renders additional per exception information into the XContent- Overrides:
metadataToXContent
in classElasticsearchException
- Throws:
java.io.IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
toXContent
in interfaceToXContent
- Overrides:
toXContent
in classElasticsearchException
- Throws:
java.io.IOException
-
guessRootCauses
Description copied from class:ElasticsearchException
Returns the root cause of this exception or multiple if different shards caused different exceptions- Overrides:
guessRootCauses
in classElasticsearchException
-
toString
public java.lang.String toString()- Overrides:
toString
in classElasticsearchException
-
getPhaseName
public java.lang.String getPhaseName()
-