Class SearchParseException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
All Implemented Interfaces:
java.io.Serializable, Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentFragment, ElasticsearchWrapperException

public class SearchParseException
extends SearchException
See Also:
Serialized Form
  • Field Details

  • Constructor Details

    • SearchParseException

      public SearchParseException​(SearchShardTarget shardTarget, java.lang.String msg, @Nullable org.elasticsearch.common.xcontent.XContentLocation location)
    • SearchParseException

      public SearchParseException​(SearchShardTarget shardTarget, java.lang.String msg, @Nullable org.elasticsearch.common.xcontent.XContentLocation location, java.lang.Throwable cause)
    • SearchParseException

      public SearchParseException​(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 SearchException
      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
    • 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
    • getLineNumber

      public int getLineNumber()
      Line number of the location of the error
      Returns:
      the line number or -1 if unknown
    • getColumnNumber

      public int getColumnNumber()
      Column number of the location of the error
      Returns:
      the column number or -1 if unknown