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, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentFragment
Direct Known Subclasses:
ReduceSearchPhaseException

public class SearchPhaseExecutionException
extends ElasticsearchException
See Also:
Serialized Form
  • 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

      public SearchPhaseExecutionException​(StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
  • Method Details

    • writeTo

      public void writeTo​(StreamOutput out) throws java.io.IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Overrides:
      writeTo in class ElasticsearchException
      Throws:
      java.io.IOException
    • status

      public RestStatus status()
      Description copied from class: ElasticsearchException
      Returns the rest status code associated with this exception.
      Overrides:
      status in class ElasticsearchException
    • shardFailures

      public ShardSearchFailure[] shardFailures()
    • getCause

      public java.lang.Throwable getCause()
      Overrides:
      getCause in class java.lang.Throwable
    • metadataToXContent

      protected void metadataToXContent​(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException
      Description copied from class: ElasticsearchException
      Renders additional per exception information into the XContent
      Overrides:
      metadataToXContent in class ElasticsearchException
      Throws:
      java.io.IOException
    • toXContent

      public org.elasticsearch.common.xcontent.XContentBuilder toXContent​(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException
      Specified by:
      toXContent in interface org.elasticsearch.common.xcontent.ToXContent
      Overrides:
      toXContent in class ElasticsearchException
      Throws:
      java.io.IOException
    • guessRootCauses

      public ElasticsearchException[] guessRootCauses()
      Description copied from class: ElasticsearchException
      Returns the root cause of this exception or multiple if different shards caused different exceptions
      Overrides:
      guessRootCauses in class ElasticsearchException
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class ElasticsearchException
    • getPhaseName

      public java.lang.String getPhaseName()