Class DatastoreNeedIndexException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.google.appengine.api.datastore.DatastoreNeedIndexException
-
- All Implemented Interfaces:
Serializable
public class DatastoreNeedIndexException extends RuntimeException
DatastoreNeedIndexException
is thrown when no matching index was found for a query requiring an index. Check the Indexes page in the Admin Console and your datastore-indexes.xml file.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DatastoreNeedIndexException(String message)
DatastoreNeedIndexException(String message, Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessage()
String
getMissingIndexDefinitionXml()
Returns the xml defining the missing index.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
getMissingIndexDefinitionXml
public String getMissingIndexDefinitionXml()
Returns the xml defining the missing index. Can benull
.
-
-