Revision created by MOE tool push_codebase.
[gae.git] / java / src / main / com / google / appengine / api / search / query / QueryTreeException.java
blobecf1e2590e171e04a8f8d94c041264a4e21c3535
1 // Copyright 2012 Google Inc. All Rights Reserved.
3 package com.google.appengine.api.search.query;
5 /**
6 * A parsing exception thrown when the tree resulting from
7 * parsing a query is in some sense invalid.
9 */
10 public class QueryTreeException extends RuntimeException {
12 private final int position;
14 public QueryTreeException(String message, int position) {
15 super(message);
16 this.position = position;
19 /**
20 * @return the position at which the error was detected
22 public int getPosition() {
23 return position;